.page.wendao-series {
  --wendao-gallery-ink:#2f4133;
  --wendao-gallery-bronze:#795032;
  --wendao-gallery-line:#b69a7270;
  --wendao-gallery-pale:#fbf5e7;
  max-width:none;
  margin:0;
  padding:23px max(24px,calc((100% - 1480px)/2)) 64px;
  background:#f5eddd linear-gradient(180deg,#f7f0e033 55%,#f5eddd 100%) no-repeat center top / 100% clamp(680px,72vw,1100px);
  background-image:linear-gradient(180deg,#f7f0e033 55%,#f5eddd 100%),url("/assets/wendao-gallery-room.webp");
  background-position:center top;
}
.wendao-gallery-hero {text-align:center;margin:0 auto 12px}
.wendao-gallery-plaque {
  display:inline-block;
  margin:0 0 7px;
  padding:2px 17px;
  border:1px solid #846040;
  outline:1px solid #a7815360;
  outline-offset:2px;
  border-radius:8px 2px;
  background:#faf1dfdf;
  color:#684427;
  font-size:calc(13px * var(--site-text-scale,1));
  font-weight:650;
  letter-spacing:.15em;
}
.wendao-gallery-hero .page-title {
  color:var(--wendao-gallery-ink);
  font-size:calc(clamp(34px,4.7vw,68px) * var(--site-text-scale,1));
  font-weight:700;
  line-height:1.18;
  letter-spacing:.09em;
  overflow-wrap:anywhere;
}
.wendao-gallery-lead {
  max-width:32em;
  margin:6px auto 10px;
  color:#374536;
  font-size:calc(clamp(14px,1.28vw,18px) * var(--site-text-scale,1));
  line-height:1.55;
}
.wendao-gallery-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
}
.wendao-gallery-actions :is(a,button),.wendao-series .wendao-book-pagination button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:.5em;
  min-height:44px;
  padding:4px 13px;
  border:1px solid #a78e66;
  border-radius:100px;
  background:var(--wendao-gallery-pale);
  color:var(--wendao-gallery-ink);
  line-height:1.3;
}
.wendao-gallery-actions :is(a,button) {font-size:calc(13px * var(--site-text-scale,1))}
.wendao-gallery-actions :is(a,button):hover,.wendao-series .wendao-book-pagination button:hover:not([aria-disabled="true"]) {background:#e5e9d7}
.wendao-series .wendao-index {margin:0;padding:0;border:0}
.wendao-gallery-layout {
  display:grid;
  grid-template-columns:minmax(176px,.91fr) minmax(0,3.85fr) minmax(86px,.43fr);
  grid-template-areas:"scroll book bookmarks";
  align-items:start;
  gap:clamp(16px,1.9vw,29px);
}
.wendao-gallery-scroll {
  grid-area:scroll;
  position:relative;
  margin:49px 0 0;
  padding:9px clamp(10px,1.25vw,18px) 17px;
  border:1px solid #b89b72;
  background:linear-gradient(90deg,#b38c5b27,transparent 8% 92%,#b38c5b23),url("/assets/home-scroll/paper.webp") center / cover,#f5ead2;
  box-shadow:inset 0 0 0 5px #fff9eb57,0 9px 24px -11px #593f2d8c;
  color:var(--wendao-gallery-ink);
}
.wendao-gallery-scroll::before,.wendao-gallery-scroll::after {
  content:"";
  position:absolute;
  z-index:1;
  left:-6px;
  right:-6px;
  height:12px;
  border:1px solid #795737;
  border-radius:9px;
  background:linear-gradient(90deg,#67452a 0 3%,#b3905a 4% 6%,transparent 7% 93%,#b3905a 94% 96%,#67452a 97%),linear-gradient(#a08051,#f5dcb2 35%,#e7c79a 62%,#917346);
  box-shadow:0 3px 7px #4b2d3044;
  pointer-events:none;
}
.wendao-gallery-scroll::before {top:-7px}
.wendao-gallery-scroll::after {bottom:-7px}
.wendao-gallery-scroll summary {
  padding:8px 0;
  min-height:44px;
  font-size:calc(16px * var(--site-text-scale,1));
  font-weight:700;
  text-align:center;
}
.wendao-gallery-scroll[open] summary {border-bottom:1px solid var(--wendao-gallery-line)}
.wendao-gallery-scroll nav {
  display:block;
  position:static;
  margin:4px 0 0;
  padding:0;
  background:none;
  box-shadow:none;
}
.wendao-gallery-scroll ol {margin:0;padding:0;list-style:none}
.wendao-gallery-scroll li+li {border-top:1px solid #9a835735}
.wendao-gallery-scroll a {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:baseline;
  gap:9px;
  min-height:44px;
  padding:10px 7px;
  border-radius:3px;
}
.wendao-gallery-scroll a:hover,.wendao-gallery-scroll a[aria-current] {
  color:#26392d;
  background:#d6dfc3;
}
.wendao-gallery-scroll a[aria-current] {box-shadow:inset 2px 0 #607458}
.wendao-gallery-scroll .wendao-book-title {font-size:calc(13.5px * var(--site-text-scale,1));line-height:1.45;overflow-wrap:anywhere}
.wendao-gallery-scroll .wendao-book-number {font-size:calc(13px * var(--site-text-scale,1))}
.wendao-gallery-bookmarks {
  grid-area:bookmarks;
  display:grid;
  position:static;
  align-self:start;
  gap:13px;
  margin:52px 0 0 -13px;
  padding:19px 0 19px 6px;
  border:1px solid #79816b;
  border-radius:2px 8px 8px 2px;
  background:#546953;
  box-shadow:inset 0 0 0 4px #eadfba24,0 7px 17px #302a2540;
}
.wendao-gallery-bookmarks button {
  min-height:44px;
  padding:4px 5px;
  border:1px solid #9d845a;
  border-radius:2px 8px;
  background:#f3ead6;
  color:#3a4734;
  font-size:calc(13px * var(--site-text-scale,1));
  font-weight:650;
  font-variant-numeric:tabular-nums;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.wendao-gallery-bookmarks button:hover,.wendao-gallery-bookmarks button[aria-pressed="true"] {
  border-color:#514332;
  outline:1px solid #f6e1af;
  outline-offset:1px;
  background:#e5edcf;
  color:#243a2d;
}
.wendao-gallery-bookmarks button:focus-visible {outline:2px solid #352012;outline-offset:3px}
.wendao-series .wendao-book {
  grid-area:book;
  --book-width:clamp(188px,35vw,490px);
  --book-height:max(clamp(444px,36.7vw,560px),var(--wendao-book-min-height,0px));
  --book-top:46px;
  --book-tail:70px;
  --page-ink:#2e3327;
  --wendao-paper-rim:#e9d9bf;
  --wendao-paper-face:#fff8e9;
  --wendao-paper-body:#faf1e0;
  --wendao-paper-slope:#f1e4cc;
  --wendao-paper-fold:#e2ceab;
  --wendao-paper-gutter:#b59b78;
  width:100%;
  min-width:0;
}
.wendao-series .wendao-book-toolbar {
  justify-content:flex-end;
  width:max-content;
  max-width:100%;
  margin:0 0 0 auto;
  padding:0;
  height:44px;
  border:0;
}
.wendao-series .wendao-book-toolbar-title {display:none}
.wendao-series .wendao-book-toolbar-close {
  min-height:44px;
  border-radius:4px;
  font-weight:600;
  color:#53432e;
}
.wendao-series .wendao-book[data-measuring] .wendao-book-toolbar {display:none}
.wendao-series .wendao-book-binding::before {box-shadow:inset 0 0 0 2px #d9ad8070,0 4px 9px #30201442,0 18px 24px -7px #36281766}
.wendao-series .wendao-book-page {padding:clamp(22px,2.7vw,39px) clamp(17px,2.55vw,37px) clamp(15px,1.8vw,26px)}
.wendao-series :is(.wendao-book-running,.wendao-book-folio) {color:var(--wendao-gallery-bronze)}
.wendao-series .wendao-book-running {
  border-bottom:1px solid var(--wendao-gallery-line);
  white-space:normal;
  letter-spacing:.06em;
}
.wendao-series .wendao-book-running span {overflow-wrap:anywhere}
.wendao-series .wendao-book-running span:last-child {text-align:end}
.wendao-series .wendao-book-page ol {margin:8px 0}
.wendao-series .wendao-book-page li+li {border-top:1px solid #92724436}
.wendao-series .wendao-book-entry {
  grid-template-columns:max-content minmax(0,1fr) auto;
  gap:clamp(6px,1vw,13px);
  min-height:44px;
  padding:clamp(9px,1.15vw,16px) 0;
}
.wendao-series .wendao-book-entry:hover .wendao-book-title,.wendao-series .wendao-book-entry:focus-visible .wendao-book-title {color:#544326}
.wendao-series .wendao-book-entry .wendao-book-number {
  padding:.14em .36em;
  border:1px solid #ac8d603d;
  border-radius:45% 22%;
  background:#e8d9b3a8;
  color:var(--wendao-gallery-bronze);
  font-size:calc(14px * var(--site-text-scale,1));
}
.wendao-series .wendao-book-entry .wendao-book-title {font-size:calc(clamp(17px,1.65vw,22px) * var(--site-text-scale,1));line-height:1.36}
.wendao-series .wendao-book-description {color:#534838;font-size:calc(14px * var(--site-text-scale,1));line-height:1.55}
.wendao-series .wendao-book-pagination {margin-inline:auto;max-width:92%;padding-top:18px;gap:clamp(4px,1vw,13px)}
.wendao-series .wendao-book-pagination button {white-space:normal;font-size:calc(14px * var(--site-text-scale,1));font-weight:640}
.wendao-series .wendao-book-page-count {white-space:normal;text-align:center;color:#4d4432}
.wendao-gallery-hint {margin:4px 0 0;text-align:center;color:#594d3a}
.wendao-series .wendao-preface,.wendao-series .reading-qr-entry {max-width:1000px;margin:38px auto 0}

@media(max-width:1080px) {
  .wendao-gallery-layout {grid-template-columns:minmax(0,1fr);grid-template-areas:"bookmarks" "scroll" "book";gap:9px;max-width:880px;margin-inline:auto}
  .wendao-gallery-scroll {margin:0 7px}
  .wendao-gallery-scroll[open] ol {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:0 10px}
  .wendao-gallery-scroll li {min-width:0}
  .wendao-gallery-bookmarks {display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:0;padding:0;border:0;background:none;box-shadow:none}
  .wendao-gallery-bookmarks button {padding-inline:11px}
  .wendao-gallery-bookmarks button[aria-pressed="true"] {border-color:#526447;outline-color:#526447}
}
@media(max-width:620px) {
  .page.wendao-series {
    padding:18px 19px 44px;
    background-size:auto 720px;
    background-position:57% top;
    background-image:linear-gradient(180deg,#f7f0e05e,#f5eddd 100%),url("/assets/wendao-gallery-room.webp");
  }
  .wendao-gallery-hero {margin-bottom:13px}
  .wendao-gallery-hero .page-title {letter-spacing:.05em}
  .wendao-gallery-scroll {margin-inline:3px;padding:3px 8px}
  .wendao-gallery-scroll::before,.wendao-gallery-scroll::after {height:7px;left:-4px;right:-4px}
  .wendao-gallery-scroll::before {top:-4px}
  .wendao-gallery-scroll::after {bottom:-4px}
  .wendao-gallery-scroll summary {padding-block:7px}
  .wendao-gallery-bookmarks button {flex:1 1 auto}
  .wendao-series .wendao-book {
    --book-width:clamp(168px,58vw,270px);
    --book-height:max(338px,var(--wendao-book-min-height,0px));
  }
  .wendao-series .wendao-book-spread {grid-template-columns:minmax(0,1fr)}
  .wendao-series .wendao-book-page[data-side="left"] {
    --wendao-paper-clip:inset(0 round 7px);
    --wendao-paper-colors:#e8d9bb,#fdf4e2 7%,#fcf3e1 93%,#eeddbd;
    padding:18px clamp(14px,5vw,24px) 13px;
  }
  .wendao-series .wendao-book-curl-measure[data-side="left"] {inset:0}
  .wendao-book-spread > .wendao-book-page[data-side="right"],.wendao-series :is(.wendao-book-gutter,.wendao-book-corner,.wendao-gallery-hint) {display:none}
  .wendao-series .wendao-book-binding::before {inset:4px -5px -10px}
  .wendao-series .wendao-book-binding::after {inset:5px -1px -6px;background:#d9c5a3}
  .wendao-series .wendao-book-entry {grid-template-columns:max-content minmax(0,1fr);gap:8px}
  .wendao-series .wendao-book-description {font-size:calc(15px * var(--site-text-scale,1))}
  .wendao-series .wendao-book-pagination {max-width:none;gap:4px}
  .wendao-series .wendao-book-pagination button {padding-inline:9px}
}

.wendao-gallery-preface-link {
  margin:5px 0;
  border-bottom:1px solid var(--wendao-gallery-line);
}
.wendao-gallery-preface-link small {
  display:block;
  font-size:calc(12px * var(--site-text-scale,1));
  line-height:1.45;
  overflow-wrap:anywhere;
}
.wendao-gallery-preface-tab {border-style:dashed}
.wendao-book-prelude {
  flex:none;
  position:relative;
  padding:clamp(5px,.65vw,10px) clamp(3px,.6vw,9px);
  color:var(--wendao-gallery-ink);
}
.wendao-book-prelude::before {
  content:"";
  position:absolute;
  inset:-9px -10px;
  border-inline:1px solid #a8875238;
  pointer-events:none;
}
.wendao-book-preface-heading {
  margin-bottom:14px;
  padding-bottom:11px;
  border-bottom:1px solid var(--wendao-gallery-line);
}
.wendao-book-prelude h2 {
  margin:0;
  font-size:calc(clamp(20px,2vw,30px) * var(--site-text-scale,1));
  line-height:1.32;
  font-weight:680;
  color:var(--wendao-gallery-ink);
  overflow-wrap:anywhere;
  scroll-margin-top:110px;
}
.wendao-series .wendao-book-prelude p {
  margin:0;
  font-size:calc(15px * var(--site-text-scale,1)) !important;
  line-height:1.66;
  color:#463e31;
  overflow-wrap:anywhere;
}
.wendao-series .wendao-book-prelude :is(.wendao-book-preface-kicker,.wendao-book-preface-byline,.wendao-book-catalogue-note) {
  font-size:calc(13px * var(--site-text-scale,1)) !important;
  color:var(--wendao-gallery-bronze);
}
.wendao-book-preface-kicker {display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
.wendao-book-preface-kicker span[lang] {letter-spacing:.14em}
.wendao-book-preface-heading h2 {margin:.25em 0 .18em}
.wendao-book-preface-text > p + p {margin-top:.65em !important}
.wendao-book-preface-continuation .wendao-book-preface-text {margin-top:14px}
.wendao-series .wendao-book-prelude .wendao-book-catalogue-note {margin-top:16px}
.wendao-book-preface .wendao-book-catalogue-note {display:none}
.wendao-book-catalogue-preview ol {list-style:none;padding:0}
.wendao-book-catalogue-preview li {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:baseline;
  gap:9px;
  padding:12px 0;
}
.wendao-book-catalogue-preview .wendao-book-title {
  font-size:calc(16px * var(--site-text-scale,1));
  line-height:1.5;
  overflow-wrap:anywhere;
}
.wendao-book-catalogue-preview .wendao-book-number {
  padding:.14em .36em;
  border:1px solid #ac8d603d;
  border-radius:45% 22%;
  background:#e8d9b3a8;
  color:var(--wendao-gallery-bronze);
  font-size:calc(14px * var(--site-text-scale,1));
}
.wendao-series .wendao-book-spread {scroll-margin-top:104px}
.wendao-gallery-top {display:none}

@media(max-width:620px) {
  .wendao-book-prelude::before {inset:-4px -6px}
  .wendao-book-preface .wendao-book-catalogue-note {display:block}
  .wendao-gallery-top {
    display:block;
    min-height:44px;
    margin:7px auto 0;
    padding:5px 15px;
    background:none;
    border:0;
    text-decoration:underline;
    text-underline-offset:.2em;
    color:var(--wendao-gallery-ink);
    font-size:calc(13px * var(--site-text-scale,1));
  }
  .wendao-series .wendao-book-prelude p {line-height:1.75}
}

/* 材質屬於書廊，書頁、連結、按鈕仍沿用既有排版。 */
.page.wendao-series {
  --gallery-brass:#a7814e;
  --gallery-aged-gold:#c49f64;
  --gallery-leather:#543526;
  --gallery-cloth:#344a3d;
  --gallery-parchment:#f1e0be;
  --gallery-wash:url("/assets/wendao-gallery/paper-landscape.webp");
  --gallery-rule:url("/assets/wendao-gallery/rule.svg");
  --gallery-lotus:url("/assets/wendao-gallery/lotus-stamp.svg");
}
.wendao-gallery-plaque {
  position:relative;
  border:0;
  outline:0;
  border-radius:0;
  isolation:isolate;
  background:none;
}
.wendao-gallery-plaque::before,.wendao-gallery-plaque::after {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,8px 100%,0 50%);
}
.wendao-gallery-plaque::before {inset:-2px -6px;background:var(--gallery-brass)}
.wendao-gallery-plaque::after {
  inset:0 -4px;
  background:linear-gradient(180deg,#fff5de,#f2e0bc);
  box-shadow:inset 0 0 0 2px #fcf1d9,inset 0 0 0 3px #c3a16c73;
}
.wendao-gallery-lead {
  position:relative;
  width:fit-content;
  max-width:min(100%,32em);
}
.wendao-gallery-lead::before,.wendao-gallery-lead::after {
  content:"";
  position:absolute;
  top:50%;
  width:clamp(20px,4vw,52px);
  height:9px;
  background:var(--gallery-rule) center / 100% auto no-repeat;
  opacity:.72;
  pointer-events:none;
}
.wendao-gallery-lead::before {right:calc(100% + 7px)}
.wendao-gallery-lead::after {left:calc(100% + 7px)}

.wendao-gallery-scroll {
  background:
    linear-gradient(90deg,#9a733539,transparent 7% 94%,#ab834935),
    url("/assets/home-scroll/paper.webp") center / cover,
    var(--gallery-parchment);
  box-shadow:
    inset 0 0 0 4px #fff5d877,
    inset 0 0 0 5px #b2884a70,
    inset 0 0 0 8px #fff5df62,
    inset 0 0 22px #a4773630,
    0 8px 16px -9px #563a2fa8;
}
.wendao-gallery-scroll::before,.wendao-gallery-scroll::after {
  left:-11px;
  right:-11px;
  height:26px;
  border:0;
  border-radius:0;
  background:url("/assets/wendao-gallery/scroll-rod.svg") center / 100% 100% no-repeat;
  box-shadow:none;
  filter:drop-shadow(0 4px 3px #55382060);
}
.wendao-gallery-scroll::before {top:-12px}
.wendao-gallery-scroll::after {bottom:-12px}
.wendao-gallery-scroll[open] summary {
  position:relative;
  border-image:linear-gradient(90deg,transparent,#ba935e 23% 77%,transparent) 1;
}
.wendao-gallery-scroll[open] summary::after {
  content:"";
  position:absolute;
  inset:auto calc(50% - 28px) -6px;
  height:12px;
  background:var(--gallery-rule) center / contain no-repeat;
  pointer-events:none;
}
.wendao-gallery-scroll a {padding-inline-end:17px}
.wendao-gallery-scroll a:hover,.wendao-gallery-scroll a[aria-current] {
  background:linear-gradient(90deg,#82946c39,#e0e4c9 13% 88%,#8e9f793f);
}
.wendao-gallery-scroll a[aria-current] {
  box-shadow:inset 0 0 0 1px #71825d70,inset 0 0 0 3px #e8edc788;
  border-radius:8px 3px;
}
.wendao-gallery-scroll a[aria-current]::after {
  content:"";
  position:absolute;
  inset:calc(50% - 3px) 7px auto auto;
  width:5px;
  height:5px;
  border-right:1px solid var(--gallery-brass);
  border-top:1px solid var(--gallery-brass);
  transform:rotate(45deg);
  pointer-events:none;
}
.wendao-gallery-scroll[open] nav::after {
  content:"";
  display:block;
  height:30px;
  margin-top:4px;
  background:
    var(--gallery-lotus) right 4px center / 15px 14px no-repeat,
    var(--gallery-wash) center bottom / 108% auto no-repeat;
  opacity:.62;
  pointer-events:none;
}
.wendao-gallery-scroll nav {position:relative}
.wendao-gallery-scroll nav::before {
  content:"";
  position:absolute;
  right:0;
  bottom:2px;
  width:22px;
  height:22px;
  border:1px solid #9a4d35b8;
  border-radius:3px;
  background:#953f2912;
  box-shadow:inset 0 0 0 2px #fcf0d994,inset 0 0 0 3px #ac543c83;
  transform:rotate(-5deg);
  pointer-events:none;
}

.wendao-gallery-bookmarks button {
  --tab-outline:#a68453;
  --tab-paper:#f4e6c9;
  --tab-shape:polygon(0 0,calc(100% - 6px) 0,calc(100% - 6px) 5px,100% 10px,100% calc(100% - 10px),calc(100% - 6px) calc(100% - 5px),calc(100% - 6px) 100%,0 100%);
  position:relative;
  isolation:isolate;
  border:0;
  outline-color:transparent;
  background:none;
  filter:drop-shadow(0 3px 2px #49352140);
}
.wendao-gallery-bookmarks button::before,.wendao-gallery-bookmarks button::after {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  clip-path:var(--tab-shape);
}
.wendao-gallery-bookmarks button::before {inset:0;background:var(--tab-outline)}
.wendao-gallery-bookmarks button::after {
  inset:1px;
  background:linear-gradient(180deg,#fff7e2aa,transparent 44%,#a87b3b1f),var(--tab-paper);
  box-shadow:inset 0 0 0 2px #fff4dda1,inset 0 0 0 3px #a07e4e4d;
}
.wendao-gallery-bookmarks button:hover,.wendao-gallery-bookmarks button[aria-pressed="true"] {
  --tab-outline:#6d663e;
  --tab-paper:#e2e9c9;
  background:none;
  outline:0;
}
.wendao-gallery-bookmarks button:focus-visible {outline:2px solid #3d4f39;outline-offset:3px}

.wendao-series .wendao-book {
  --wendao-paper-rim:#e7d3ae;
  --wendao-paper-face:#fff6e3;
  --wendao-paper-body:#faf0dc;
  --wendao-paper-slope:#f1dfbd;
  --wendao-paper-fold:#dfc095;
  --wendao-paper-gutter:#ac895c;
  --book-tail:78px;
}
.wendao-series .wendao-book-binding::before {
  inset:-3px -13px -25px;
  border:1px solid #684433;
  border-radius:12px 12px 15px 15px / 11px 11px 14px 14px;
  background:
    radial-gradient(ellipse at 5% 91%,#ad794338,transparent 19%),
    radial-gradient(ellipse at 96% 8%,#ba875238,transparent 36%),
    repeating-linear-gradient(15deg,#efcf9a12 0 1px,transparent 1px 4px),
    linear-gradient(90deg,#6a4432,var(--gallery-leather) 44%,#422a20 50%,var(--gallery-leather) 56%,#6a4432);
  box-shadow:
    inset 0 0 0 1px #c79a6b,
    inset 0 0 0 3px #8f6243,
    inset 0 0 0 4px #c49f646b,
    inset 0 -9px 15px #331d153f,
    0 3px 4px #3e281a65,
    0 19px 24px -8px #422c1e77,
    0 34px 38px -19px #533f2a45;
}
.wendao-series .wendao-book-binding::after {
  inset:2px -6px -16px;
  border:1px solid #af8b58;
  border-radius:9px 9px 11px 11px;
  background:
    url("/assets/wendao-gallery/paper-edges.svg") center bottom / 100% 39px no-repeat,
    linear-gradient(90deg,#b39469,#eddbb5 3% 43%,#866949 50%,#eddbb5 57% 97%,#b39469);
  box-shadow:0 2px 0 #e5cc9e,0 3px 0 #976c49,0 5px 0 #6e5037;
}
.wendao-series .wendao-book-gutter {
  top:0;
  bottom:-15px;
  width:clamp(25px,5%,51px);
  background:linear-gradient(90deg,transparent,#b6996f28 23%,#674b328a 44%,#684830 50%,#674b328a 56%,#b6996f28 77%,transparent);
}
.wendao-book-gutter::before,.wendao-book-gutter::after {
  content:"";
  position:absolute;
  inset-inline:7%;
  height:10px;
  border-radius:40%;
  background:linear-gradient(0deg,#553824,#926b46 65%,#be9767);
  box-shadow:inset 0 1px #d1ae7577,0 1px 1px #492f2877;
}
.wendao-book-gutter::before {top:1px}
.wendao-book-gutter::after {bottom:-6px}
.wendao-book-ribbon {
  position:absolute;
  z-index:-1;
  left:calc(50% + 13px);
  bottom:-35px;
  width:21px;
  height:47px;
  transform:rotate(-7deg);
  transform-origin:top center;
  clip-path:polygon(0 0,100% 0,97% 100%,51% 84%,5% 100%);
  background:
    repeating-linear-gradient(105deg,#f3c4a421 0 1px,transparent 1px 3px),
    linear-gradient(90deg,#742e23,#a85038 32%,#aa5a42 45%,#954531 56%,#762e23);
  box-shadow:inset 0 8px 7px #4920199e,inset 1px 0 #c67d62,inset -1px 0 #57271c;
  pointer-events:none;
}
.wendao-series .wendao-book-page::after {
  content:"";
  position:absolute;
  inset:7px 7px 9px;
  clip-path:var(--wendao-paper-clip);
  border-radius:11px 8px 10px 11px;
  box-shadow:inset 0 0 0 1px #bd9c603e,inset 0 0 0 3px #fff6df8c,inset 0 0 0 4px #b9975a26;
  pointer-events:none;
}
.wendao-series .wendao-book-page:has(.wendao-book-folio span:not(:empty))::after {
  background:var(--gallery-wash) right bottom / 100% min(77px,20%) no-repeat;
  opacity:.68;
}
.wendao-series .wendao-book-page[data-side="left"]:has(.wendao-book-folio span:not(:empty))::after {
  transform:scaleX(-1);
}
.wendao-book-page .wendao-book-index-copy {z-index:1}
.wendao-series .wendao-book-running::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:44px;
  height:11px;
  transform:translateX(-50%);
  background:var(--gallery-rule) center / contain no-repeat;
  pointer-events:none;
}
.wendao-series .wendao-book-page li+li {
  border-image:linear-gradient(90deg,transparent,#94724446 13% 83%,transparent) 1;
}
.wendao-series :is(.wendao-book-entry,.wendao-book-catalogue-preview) .wendao-book-number {
  --wendao-badge-fill:#ead7af;
  position:relative;
  isolation:isolate;
  border-color:transparent;
  border-radius:53% 37% 44% 32% / 50% 52% 42% 55%;
  background:none;
}
.wendao-series :is(.wendao-book-entry,.wendao-book-catalogue-preview) .wendao-book-number::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-2px -4px;
  background:url("/assets/wendao-gallery/cloud-badge.svg") center / 100% 100% no-repeat;
  pointer-events:none;
}
.wendao-book-entry .wendao-book-arrow {
  color:#926637;
  font-size:calc(18px * var(--site-text-scale,1));
  line-height:1;
}
.wendao-series .wendao-book-folio span:not(:empty)::after {
  content:"";
  display:inline-block;
  vertical-align:middle;
  width:35px;
  height:11px;
  margin-inline:6px 0;
  background:var(--gallery-rule) center / contain no-repeat;
}
.wendao-series .wendao-book-page[data-side="right"] .wendao-book-folio span:not(:empty)::after {
  margin-inline:0 6px;
  content:none;
}
.wendao-series .wendao-book-page[data-side="right"] .wendao-book-folio span:not(:empty)::before {
  content:"";
  display:inline-block;
  vertical-align:middle;
  width:35px;
  height:11px;
  margin-inline-end:6px;
  background:var(--gallery-rule) center / contain no-repeat;
}
.wendao-series .wendao-book-pagination {padding-top:24px}
body:has(.wendao-series) .site-text-size {translate:0 calc(-1 * var(--wendao-tool-lift,0px))}
.wendao-series .wendao-book-pagination button {
  background:linear-gradient(180deg,#fff8e8,var(--gallery-parchment));
  box-shadow:inset 0 0 0 2px #fff6dfbd,0 2px 4px #664b3021;
}
.wendao-series .wendao-book-pagination button:active:not([aria-disabled="true"]) {transform:translateY(1px)}

@media(min-width:1081px) {
  .wendao-gallery-layout {isolation:isolate}
  .wendao-gallery-layout > .wendao-book {z-index:1}
  .wendao-gallery-scroll summary::before {
    content:"";
    position:absolute;
    z-index:2;
    top:-12px;
    left:-31px;
    width:26px;
    height:179px;
    background:url("/assets/wendao-gallery/scroll-tassel.webp") center top / contain no-repeat;
    filter:drop-shadow(2px 3px 2px #4a38284d);
    pointer-events:none;
  }
  .wendao-gallery-bookmarks {
    position:relative;
    z-index:0;
    margin-left:-25px;
    padding:19px 4px 18px 0;
    border:0;
    background:none;
    box-shadow:none;
  }
  .wendao-gallery-bookmarks::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:0 16% -58px -25px;
    border:1px solid #788569;
    border-radius:3px 10px 12px 3px;
    background:
      var(--gallery-lotus) 57% calc(100% - 15px) / 33px 28px no-repeat,
      repeating-linear-gradient(120deg,#d0c09718 0 1px,transparent 1px 4px),
      linear-gradient(90deg,#283a31,var(--gallery-cloth) 39% 89%,#596b56);
    box-shadow:
      inset 0 0 0 3px #637964,
      inset 0 0 0 4px #b29865,
      inset 0 0 0 7px #342e243f,
      3px 6px 9px #38332a63;
    pointer-events:none;
  }
  .wendao-gallery-bookmarks button {margin-left:-9px;padding-inline:18px 9px}
  .wendao-gallery-bookmarks button[aria-pressed="true"] {transform:translateX(4px)}
  .wendao-gallery-bookmarks button:hover {transform:translateX(3px)}
  .wendao-gallery-bookmarks button[aria-pressed="true"]:hover {transform:translateX(5px)}
}
@media(min-width:1260px) {
  .page.wendao-series {
    background-image:
      url("/assets/wendao-gallery/desk-books.webp"),
      url("/assets/wendao-gallery/desk-incense.webp"),
      linear-gradient(0deg,#62493560,#77533025 80%,#ad865450),url("/assets/sutra-shelf/shelf-wood.webp"),
      linear-gradient(180deg,#f7f0e008 36%,#f5eddd 75%),
      url("/assets/wendao-gallery-room.webp");
    background-position:
      clamp(12px,4vw,88px) calc(100% - 9px),
      right clamp(165px,11vw,217px) bottom 9px,
      center bottom,center bottom,center top,center top;
    background-size:
      clamp(115px,12vw,222px) auto,
      clamp(82px,8vw,154px) auto,
      100% 35px,100% 35px,
      100% clamp(680px,72vw,1100px),100% auto;
  }
}
@media(max-width:1080px) {
  .wendao-gallery-scroll::before,.wendao-gallery-scroll::after {height:19px;left:-7px;right:-7px}
  .wendao-gallery-scroll::before {top:-9px}
  .wendao-gallery-scroll::after {bottom:-9px}
}
@media(max-width:740px) {
  .wendao-gallery-lead::before,.wendao-gallery-lead::after {display:none}
}
@media(max-width:620px) {
  .wendao-gallery-scroll::before,.wendao-gallery-scroll::after {height:13px;left:-4px;right:-4px;filter:none}
  .wendao-gallery-scroll::before {top:-6px}
  .wendao-gallery-scroll::after {bottom:-6px}
  .wendao-gallery-scroll[open] nav::after,.wendao-gallery-scroll nav::before {display:none}
  .wendao-series .wendao-book-binding::before {inset:4px -6px -18px}
  .wendao-series .wendao-book-binding::after {
    inset:2px -2px -11px;
    background:
      repeating-linear-gradient(0deg,#805b3547 0 1px,#ebd4a9 1px 3px) bottom / 100% 9px no-repeat,
      linear-gradient(90deg,#ac8e61,#efdcba 7% 93%,#ac8e61);
  }
  .wendao-book-ribbon {bottom:-31px;width:14px;height:40px;left:calc(50% + 5px)}
  .wendao-series .wendao-book-page:has(.wendao-book-folio span:not(:empty))::after {
    background-size:100% min(47px,17%);
    opacity:.47;
  }
}
@media (prefers-reduced-motion:no-preference) {
  .wendao-gallery-bookmarks button {transition:transform .17s ease-out}
}
