/* =========================================================
   設計繪畫教室 drawing-lab.html 專用樣式（2026.10）
   以 labs.css 為基礎，全部限定在 .dl-page 之下。
   ========================================================= */
.dl-page {
	--brand: #C8501E;          /* 主題色：赭紅（標題線、按鈕） */
	--accent: #C8501E;
	--bg: #F5F1E9;             /* 紙張底色 */
	--paper: #FFFDF8;
	--line: #E3DCCD;
	--ease: cubic-bezier(.22, 1, .36, 1);
	overflow: clip;
}
.dl-page [hidden], .dl-viewer[hidden], .dl-viewer [hidden] { display: none !important; }
.dl-page .labs-intro h2 em { background: linear-gradient(transparent 60%, #F6C177 60%); }
.dl-page .labs-intro p.lead b { color: var(--ink); }
.dl-page .labs-section-head h3 small { display: block; margin-bottom: 8px; color: var(--brand); font-size: 12px; }
.dl-page .labs-updated { line-height: 1.7; }

/* 位置／老師 */
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dl-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 8px 0; color: var(--ink-2); }
.dl-meta { align-items: center; gap: 6px 22px; }
.dl-chip svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-chip.is-link { padding: 8px 16px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--ink) !important; font-weight: 700; text-decoration: none !important; transition: box-shadow .25s, color .25s; }
.dl-chip.is-link .arr { margin-left: 2px; transition: transform .3s var(--ease); }
.dl-chip.is-link:hover, .dl-chip.is-link:focus-visible { box-shadow: 0 0 0 1.5px var(--brand); color: var(--brand) !important; }
.dl-chip.is-link:hover .arr { transform: translateX(4px); }

/* ---------- 頁內導覽 ---------- */
.dl-subnav { position: sticky; top: 70px; z-index: 30; margin: 8px 0 56px; transition: background .3s, box-shadow .3s; }
.dl-subnav.is-stuck { background: rgba(245, 241, 233, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.dl-subnav-in { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.dl-subnav-in::-webkit-scrollbar { display: none; }
.dl-subnav a { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: 15px; transition: color .3s; }
.dl-subnav a i { font: 600 11px/1 ui-monospace, Menlo, monospace; font-style: normal; opacity: .55; }
.dl-subnav a:hover { color: var(--ink); }
.dl-subnav a.is-on { color: #fff; }
.dl-subnav-bar { position: absolute; left: 0; top: 12px; bottom: 12px; width: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.dl-sec { scroll-margin-top: 150px; margin-bottom: 104px; }

/* ---------- 01 教室 ---------- */
.dl-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.dl-studio-text { display: grid; gap: 18px; }
.dl-studio-text p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.dl-page p.quote { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.6; padding-left: 14px; border-left: 3px solid var(--brand); }
.dl-courses { margin-top: 6px; }
.dl-courses .labs-mono { color: var(--ink-3); }
.dl-courses ul { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.dl-courses li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.dl-courses li b { color: var(--ink); font-size: 15.5px; }

.dl-gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dl-gear button { appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 10px 16px; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink-2); font: 700 14.5px/1.2 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, color .3s, transform .4s var(--ease); }
.dl-gear button svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.dl-gear button:hover { transform: translateY(-3px); color: var(--ink); }
.dl-gear button:hover svg { transform: rotate(-6deg) scale(1.06); }
.dl-gear button[aria-selected="true"] { color: var(--brand); box-shadow: 0 0 0 2px var(--brand), 0 16px 30px -22px var(--brand); }
.dl-gear button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: var(--paper); border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); opacity: 0; }
.dl-gear-panel { grid-column: 1 / -1; padding: 20px 24px; border-radius: 18px; background: var(--ink); color: rgba(255, 255, 255, .78); min-height: 108px; }
.dl-gear-panel b { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }
.dl-gear-panel p { margin: 0; font-size: 15px; line-height: 1.75; }
.dl-gear-panel.swap > * { animation: dlUp .5s var(--ease) both; }
.dl-gear-panel.swap p { animation-delay: .06s; }
@keyframes dlUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 02 課程：流程 ---------- */
.dl-flow { background: var(--paper); border-radius: 24px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(60, 40, 10, .45); }
.dl-flow-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin-bottom: 22px; }
.dl-flow-head .labs-mono { color: var(--brand); }
.dl-flow-head p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.dl-steps { --p: 0; position: relative; list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dl-steps::before, .dl-steps::after { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 21px; height: 3px; border-radius: 3px; background: var(--line); }
.dl-steps::after { background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform .6s var(--ease); }
.dl-steps li { position: relative; z-index: 1; display: flex; justify-content: center; }
.dl-steps button { appearance: none; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; font-family: inherit; color: var(--ink-3); transition: color .3s; }
.dl-steps button i { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font: 800 16px/1 inherit; font-style: normal; color: var(--ink-3); transition: background .35s, color .35s, box-shadow .35s, transform .45s var(--ease); }
.dl-steps button span { font-size: 14px; font-weight: 700; white-space: nowrap; }
.dl-steps button:hover i { transform: scale(1.08); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink-3); }
.dl-steps li.done button i { background: #F7E2D6; box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.dl-steps button[aria-selected="true"] { color: var(--ink); }
.dl-steps button[aria-selected="true"] i { background: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(200, 80, 30, .16); transform: scale(1.1); }
.dl-flow-stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.dl-flow-fig { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #EFE9DD; }
.dl-flow-fig img { width: 100%; height: 100%; object-fit: contain; }
.dl-flow-txt h4 { margin: 10px 0 12px; font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; color: var(--ink); }
.dl-flow-txt .labs-mono { color: var(--brand); }
.dl-flow-txt p { margin: 0; font-size: 16.5px; line-height: 1.9; color: var(--ink-2); }
.dl-flow-txt small { display: block; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.dl-flow-fig, .dl-flow-txt > * { transition: opacity .3s, transform .45s var(--ease); }
.dl-flow-stage.out .dl-flow-fig { opacity: 0; transform: scale(.97); }
.dl-flow-stage.out .dl-flow-txt > * { opacity: 0; transform: translateY(8px); }

/* 單元主題 */
.dl-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.dl-unit { position: relative; padding: 24px 22px 22px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .45s var(--ease), box-shadow .3s; }
.dl-unit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.dl-unit:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 20px 36px -26px rgba(60, 40, 10, .5); }
.dl-unit:hover::before { transform: scaleX(1); }
.dl-unit-no { font-size: 44px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--brand); }
.dl-unit h4 { margin: 4px 0 0; font-size: 18px; font-weight: 900; line-height: 1.4; color: var(--ink); }
.dl-unit p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); flex: 1; }
.dl-page .lab-tags { gap: 4px 12px; }
.dl-page .lab-tags span { border: 0; padding: 0; border-radius: 0; font-size: 13px; color: var(--ink-3); }
.dl-page .lab-tags span::before { content: "#"; margin-right: 1px; color: var(--brand); }

/* ---------- 篩選 ---------- */
.dl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.dl-filter button { appearance: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 17px; font: 700 14.5px/1 inherit; font-family: inherit; cursor: pointer; transition: background .25s, color .25s, transform .3s var(--ease); }
.dl-filter button:hover { transform: translateY(-2px); }
.dl-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dl-filter button small { font-weight: 500; opacity: .6; margin-left: 3px; }

/* ---------- 03 繪本書架 ---------- */
.dl-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
.dl-book { appearance: none; border: 0; background: none; padding: 0; text-align: left; font-family: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 14px; }
.dl-book-cover { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #EAE3D5; perspective: 1100px; }
.dl-book-cover .bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); max-width: none; object-fit: cover; filter: blur(22px) saturate(1.2); opacity: .55; transform: scale(1.1); }
.dl-book-3d { position: relative; width: 82%; transform: rotateY(0) translateZ(0); transform-origin: 0 50%; transition: transform .7s var(--ease), box-shadow .7s var(--ease); box-shadow: 0 18px 30px -16px rgba(30, 20, 5, .55), 0 2px 4px rgba(30, 20, 5, .2); border-radius: 2px 6px 6px 2px; }
.dl-book-3d img { width: 100%; height: auto; max-height: 100%; border-radius: 2px 6px 6px 2px; }
.dl-book-3d .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .22) 45%, rgba(0, 0, 0, .08)); border-radius: 2px 0 0 2px; }
.dl-book-3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .35), transparent 38%); opacity: 0; transition: opacity .6s; }
.dl-book-open { position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; transform: translate(-50%, 12px); opacity: 0; transition: opacity .35s, transform .5s var(--ease); }
.dl-book-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.dl-book:hover .dl-book-3d, .dl-book:focus-visible .dl-book-3d { transform: rotateY(-16deg) translateZ(10px); box-shadow: 18px 26px 34px -18px rgba(30, 20, 5, .6), 0 2px 4px rgba(30, 20, 5, .2); }
.dl-book:hover .dl-book-3d::after { opacity: 1; }
.dl-book:hover .dl-book-open, .dl-book:focus-visible .dl-book-open { opacity: 1; transform: translate(-50%, 0); }
.dl-book:focus-visible { outline: none; }
.dl-book:focus-visible .dl-book-cover { box-shadow: 0 0 0 3px var(--brand); }
.dl-book-body { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.dl-book-cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--c); display: inline-flex; align-items: center; gap: 6px; }
.dl-book-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dl-book-body b { font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1.35; transition: color .3s; }
.dl-book:hover .dl-book-body b { color: var(--brand); }
.dl-book-desc { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-book-pg { font: 600 11.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--ink-3); }
.dl-page .dl-book.rv { transform: translateY(30px); }
.dl-page .dl-book.rv.in { transform: none; }
.dl-book.pop, .dl-tile.pop { animation: dlPop .6s var(--ease) both; }
@keyframes dlPop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- 04 角色設計 ---------- */
.dl-ip-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-bottom: 44px; }
.dl-ip-text { display: grid; gap: 18px; }
.dl-ip-text > p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.dl-ip-text b { color: var(--ink); }
.dl-page .lab-points li { font-size: 15px; line-height: 1.7; }
.dl-page .lab-points li::before { background: var(--brand); }

.dl-turn { background: var(--paper); border-radius: 22px; padding: 18px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(60, 40, 10, .45); }
.dl-turn-stage { position: relative; aspect-ratio: 1600 / 1068; border-radius: 14px; overflow: hidden; background: #F4EADF; cursor: zoom-in; }
.dl-turn-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform .9s var(--ease); }
.dl-turn-stage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 33.4%; left: 0; border: 2px solid var(--brand); border-radius: 12px; opacity: 0; transition: opacity .4s, left .9s var(--ease); pointer-events: none; }
.dl-turn[data-view="0"] img { transform: scale(2.3) translateX(32%); }
.dl-turn[data-view="1"] img { transform: scale(2.3) translateX(0); }
.dl-turn[data-view="2"] img { transform: scale(2.3) translateX(-32%); }
.dl-turn-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.dl-turn-ctrl .labs-mono { color: var(--ink-3); margin-right: auto; }
.dl-turn-ctrl button { appearance: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 10px; padding: 8px 14px; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.dl-turn-ctrl button:hover { border-color: var(--ink); color: var(--ink); }
.dl-turn-ctrl button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.dl-turn-note { margin: 12px 2px 2px; font-size: 14px; color: var(--ink-2); min-height: 1.6em; }

/* 作品牆 */
.dl-wall { columns: 4 240px; column-gap: 14px; }
.dl-tile { appearance: none; position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; break-inside: avoid; box-shadow: 0 0 0 1px var(--line); }
.dl-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.dl-tile:hover img { transform: scale(1.04); }
.dl-tile-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(18, 19, 22, .82); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s var(--ease); }
.dl-tile-cap svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dl-tile:hover .dl-tile-cap, .dl-tile:focus-visible .dl-tile-cap { opacity: 1; transform: none; }
.dl-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.dl-more { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 10px; padding: 15px 18px; border: 1.5px dashed rgba(18, 19, 22, .3); border-radius: 14px; background: transparent; color: var(--ink); font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.dl-more i { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease); }
.dl-more:hover { background: var(--paper); border-color: var(--brand); color: var(--brand); }
.dl-more:hover i { transform: translateY(0) rotate(45deg); }

/* ---------- 結尾 ---------- */
.dl-end { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: 24px; background: var(--ink); color: rgba(255, 255, 255, .72); }
.dl-end .labs-mono { color: #F6C177; }
.dl-end h3 { margin: 10px 0 8px; color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.dl-end p { margin: 0; font-size: 15px; line-height: 1.8; }
.dl-end-links { display: grid; gap: 10px; }
.dl-end-links a { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 14px; padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; transition: background .3s; }
.dl-end-links a b { font-size: 16.5px; }
.dl-end-links a small { font-size: 13px; color: rgba(255, 255, 255, .6); }
.dl-end-links a i { align-self: center; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .35s var(--ease); }
.dl-end-links a:hover { background: rgba(255, 255, 255, .13); }
.dl-end-links a:hover i { transform: translateX(5px) rotate(45deg); }

/* ---------- 閱讀器 ---------- */
html.dl-lock, html.dl-lock body { overflow: hidden; }
html.dl-lock #toTop { display: none !important; }
.dl-viewer { position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: #15130F; color: #fff; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; opacity: 0; transition: opacity .3s; }
.dl-viewer.is-open { opacity: 1; }
.dl-viewer .labs-mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .14em; font-size: 11.5px; font-weight: 600; color: #F6C177; }
.dlv-top { display: flex; align-items: flex-start; gap: 18px; padding: 16px 20px 10px 24px; }
.dlv-head { flex: 1; min-width: 0; }
.dlv-head h3 { margin: 6px 0 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 900; color: #fff; }
.dlv-head p { margin: 6px 0 0; max-width: 46em; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .66); }
.dlv-count { flex: none; padding-top: 8px; font: 600 13px/1 ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .7); }
.dlv-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .25s, transform .4s var(--ease, ease); }
.dlv-close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.dlv-close svg, .dlv-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dlv-stage { position: relative; display: flex; align-items: center; min-height: 0; padding: 0 12px; }
.dlv-pages { position: relative; flex: 1; height: 100%; min-height: 0; overflow: hidden; }
.dlv-page { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 10px; opacity: 0; transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
.dlv-page img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); background: #fff; }
.m-gallery .dlv-page img { flex: 0 1 auto; max-height: calc(100% - 34px); }
.dlv-page figcaption { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.dlv-page.from-r { transform: translateX(6%); }
.dlv-page.from-l { transform: translateX(-6%); }
.dlv-page.from-0 { transform: scale(.97); }
.dlv-page.is-cur { opacity: 1; transform: none; }
.dlv-page.to-l { opacity: 0; transform: translateX(-6%); }
.dlv-page.to-r { opacity: 0; transform: translateX(6%); }
.dlv-nav { flex: none; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .25s, opacity .25s, transform .3s; }
.dlv-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.dlv-nav.prev:hover:not(:disabled) { transform: translateX(-3px); }
.dlv-nav.next:hover:not(:disabled) { transform: translateX(3px); }
.dlv-nav:disabled { opacity: .25; cursor: default; }
.dlv-nav.to-next { background: #C8501E; }
.dlv-end { position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateX(-50%); font-size: 14px; animation: dlvEnd .6s cubic-bezier(.22, 1, .36, 1) .3s both; white-space: nowrap; }
.dlv-end button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 16px; background: #C8501E; color: #fff; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.dlv-end button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.dlv-end button:hover svg { transform: translateX(3px); }
@keyframes dlvEnd { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dlv-bar { height: 3px; margin: 10px 24px 0; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.dlv-bar i { display: block; height: 100%; background: #F6C177; transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.dlv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.dlv-thumbs button { flex: none; height: 60px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #333; cursor: pointer; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .25s, outline-color .25s; }
.dlv-thumbs button img { height: 100%; width: auto; max-width: none; }
.dlv-thumbs button:hover { opacity: .85; }
.dlv-thumbs button.is-on { opacity: 1; outline-color: #F6C177; }

/* ---------- RWD ---------- */
@media (max-width: 991px) {
	.dl-studio, .dl-ip-intro, .dl-end { grid-template-columns: minmax(0, 1fr); }
	.dl-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dl-units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dl-flow-stage { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.dl-steps { overflow-x: auto; grid-template-columns: repeat(7, 92px); padding-bottom: 6px; scrollbar-width: none; }
	.dl-steps::-webkit-scrollbar { display: none; }
	.dl-steps::before, .dl-steps::after { left: 46px; right: auto; width: calc(92px * 6); }
}
@media (max-width: 680px) {
	.dl-subnav { margin-bottom: 40px; }
	.dl-subnav a { padding: 9px 14px; font-size: 14px; }
	.dl-sec { margin-bottom: 76px; }
	.dl-gear { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.dl-gear button { padding: 16px 4px 12px; font-size: 13px; }
	.dl-gear button svg { width: 36px; height: 36px; }
	.dl-courses li { grid-template-columns: 1fr; gap: 2px; }
	.dl-turn-ctrl .labs-mono { flex-basis: 100%; }
	.dl-turn-ctrl button { flex: 1; }
	.dl-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
	.dl-book-body b { font-size: 16px; }
	.dl-book-open { display: none; }
	.dl-units { grid-template-columns: minmax(0, 1fr); }
	.dl-wall { columns: 2; column-gap: 10px; }
	.dl-tile { margin-bottom: 10px; border-radius: 10px; }
	.dl-tile-cap { display: none; }
	.dlv-top { padding: 12px 12px 6px 16px; }
	.dlv-head p { display: none; }
	.dlv-stage { padding: 0; }
	.dlv-nav { position: absolute; bottom: 8px; width: 44px; height: 44px; }
	.dlv-nav.prev { left: 12px; } .dlv-nav.next { right: 12px; }
	.dlv-pages { height: 100%; }
	.dlv-thumbs { padding: 10px 12px 14px; }
	.dlv-thumbs button { height: 46px; }
	.dlv-end { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.dl-page *, .dl-viewer * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   2026.10 改版：繪見故事實驗室・速寫本風格
   紙張紋理、方格草稿線、紙膠帶、鉛筆手繪線條
   ========================================================= */
.dl-page, .dl-hero {
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--pencil: #2B2A28;
}
.dl-page { background: var(--grain), var(--bg); }
.dl-hand { font-family: "Caveat", "Comic Sans MS", cursive; font-weight: 700; letter-spacing: .01em; }

/* ---------- 主視覺 ---------- */
.dl-hero { position: relative; overflow: hidden; padding: 128px 0 64px; color: var(--pencil); font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	background:
		var(--grain),
		linear-gradient(rgba(70, 110, 160, .09) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, rgba(70, 110, 160, .09) 1px, transparent 1px) 0 0 / 32px 32px,
		#F4EEE2; }
.dl-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, #F5F1E9); pointer-events: none; }
.dl-hero::after { content: ""; position: absolute; top: 70px; bottom: 0; left: max(24px, calc(50% - 600px - 40px)); width: 2px; background: rgba(200, 80, 30, .35); }
.dl-hero-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px 0 48px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; align-items: center; min-height: min(640px, calc(100vh - 160px)); }
.dl-hero .dl-hand { margin: 0 0 6px; font-size: 30px; color: #C8501E; transform: rotate(-4deg); transform-origin: 0 50%; display: inline-block; }
.dl-hero .labs-mono { color: #6B655B; font-family: ui-monospace, Menlo, monospace; letter-spacing: .14em; font-size: 12px; font-weight: 600; }
.dl-hero h1 { margin: 14px 0 0; font-family: "Noto Serif TC", serif; font-size: clamp(48px, 7vw, 92px); font-weight: 900; line-height: 1.08; letter-spacing: .02em; color: var(--pencil); }
.dl-u { position: relative; display: inline-block; color: #C8501E; }
.dl-u svg { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; fill: none; stroke: var(--pencil); stroke-width: 3; stroke-linecap: round; }
.dl-u svg path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) .5s; }
.dl-u svg path + path { stroke-width: 2; opacity: .6; transition-delay: .9s; }
.dl-hero.is-in .dl-u svg path { stroke-dashoffset: 0; }
.dl-hero-en { margin: 18px 0 0; font: 600 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .32em; text-transform: uppercase; color: #8A8478; }
.dl-hero-lead { margin: 22px 0 0; max-width: 28em; font-size: 17px; line-height: 1.9; color: #4B473F; }
.dl-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.dl-cta-main { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; background: var(--pencil); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none !important; box-shadow: 4px 4px 0 #C8501E; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s; }
.dl-cta-main svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.dl-cta-main:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #C8501E; }
.dl-cta-teacher { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(43, 42, 40, .15); color: var(--pencil) !important; text-decoration: none !important; transition: box-shadow .3s, background .3s; }
.dl-cta-teacher img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.dl-cta-teacher span { display: flex; flex-direction: column; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.dl-cta-teacher small { font-size: 11.5px; font-weight: 500; color: #8A8478; }
.dl-cta-teacher i { font-style: normal; color: #C8501E; transition: transform .3s; }
.dl-cta-teacher:hover { background: #fff; box-shadow: 0 0 0 1.5px #C8501E; }
.dl-cta-teacher:hover i { transform: translateX(4px); }
.dl-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; font-size: 13px; color: #8A8478; }
.dl-crumb a { color: #6B655B !important; text-decoration: none !important; border-bottom: 1px solid transparent; transition: border-color .2s; }
.dl-crumb a:hover { border-color: currentColor; }
.dl-crumb b { color: var(--pencil); font-weight: 700; }

/* 作品展示牆 */
.dl-board { position: relative; aspect-ratio: 1 / .92; }
.pin { --px: 0px; --py: 0px; position: absolute; left: var(--x); top: var(--y); width: var(--w); padding: 0; border: 0; background: none; cursor: pointer; transform: translate3d(var(--px), var(--py), 0) rotate(var(--r)); transition: filter .3s; z-index: 1; opacity: 0; }
.pin:nth-of-type(3) { z-index: 3; }
.pin-in { position: relative; display: block; padding: 8px 8px 10px; background: #fff; box-shadow: 0 1px 2px rgba(40, 30, 10, .18), 0 18px 30px -18px rgba(40, 30, 10, .5); transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s; }
.pin-in img { width: 100%; height: auto; display: block; }
.pin:hover { z-index: 5; }
.pin:hover .pin-in { transform: translateY(-8px) rotate(calc(var(--r) * -.6)) scale(1.04); box-shadow: 0 1px 2px rgba(40, 30, 10, .18), 0 30px 44px -22px rgba(40, 30, 10, .6); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-in { box-shadow: 0 0 0 3px #C8501E; }
.tape { position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(246, 193, 119, .72); transform: rotate(-4deg); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px)); }
.tape.r { background: rgba(160, 200, 190, .72); transform: rotate(5deg); left: 22%; }
.dl-hero.is-in .pin { animation: dlPin .9s cubic-bezier(.22, 1, .36, 1) both; }
.dl-hero.is-in .pin:nth-of-type(2) { animation-delay: .12s; }
.dl-hero.is-in .pin:nth-of-type(3) { animation-delay: .24s; }
.dl-hero.is-in .pin:nth-of-type(4) { animation-delay: .36s; }
.dl-hero.is-in .pin:nth-of-type(5) { animation-delay: .48s; }
@keyframes dlPin { from { opacity: 0; transform: translate3d(0, 40px, 0) rotate(calc(var(--r) * 3)) scale(.92); } to { opacity: 1; transform: translate3d(var(--px), var(--py), 0) rotate(var(--r)); } }
.dl-hero.is-in .pin { opacity: 1; }
.dl-doodle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--pencil); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; z-index: 4; }
.dl-doodle path { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1s ease 1.1s; }
.dl-doodle .d2 { stroke: #C8501E; transition-delay: 1.3s; }
.dl-doodle .d3 { transition-delay: 1.5s; }
.dl-hero.is-in .dl-doodle path { stroke-dashoffset: 0; }
.dl-note { position: absolute; right: 2%; bottom: -34px; font-family: "Noto Sans TC", sans-serif; font-size: 14px; font-weight: 700; color: #C8501E; transform: rotate(-3deg); opacity: 0; transition: opacity .6s 1.6s; }
.dl-hero.is-in .dl-note { opacity: 1; }
.dl-hero-down { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--pencil); border-radius: 14px; opacity: .55; }
.dl-hero-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--pencil); animation: dlDown 1.8s ease-in-out infinite; }
@keyframes dlDown { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 速寫本元素：標題手繪底線、索引卡 ---------- */
.dl-page .labs-section-head { border-bottom: 0; position: relative; padding-bottom: 20px; }
.dl-page .labs-section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6c40-3 80 2 120-1s90-3 140 1 90 1 138-2' fill='none' stroke='%232B2A28' stroke-opacity='.35' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.dl-page .labs-section-head h3 { font-family: "Noto Serif TC", serif; }
.dl-page .labs-section-head h3 small { font-family: "Caveat", cursive; font-size: 22px; letter-spacing: .02em; text-transform: none; font-weight: 700; }
.dl-unit { background: linear-gradient(transparent 0 calc(100% - 1px), rgba(70, 110, 160, .14) 0) 0 54px / 100% 28px, var(--paper); overflow: visible; }
.dl-unit::after { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(246, 193, 119, .7); transform: rotate(-3deg); }
.dl-unit:nth-child(even)::after { background: rgba(160, 200, 190, .72); transform: rotate(4deg); }
.dl-unit::before { display: none; }
.dl-page .dl-unit.rv.in:nth-child(odd) { transform: rotate(-.6deg); }
.dl-page .dl-unit.rv.in:nth-child(even) { transform: rotate(.5deg); }
.dl-page .dl-unit.rv.in:hover { transform: rotate(0) translateY(-4px); }
.dl-unit-no { font-family: "Caveat", cursive; font-size: 48px; color: #C8501E; -webkit-text-stroke: 0; }
.dl-flow { background: var(--grain), var(--paper); }
.dl-book-cover { background: #E9E1D1; }

/* ---------- 教室主人 ---------- */
.dl-master { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 48px; padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; background: var(--grain), var(--paper); box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(60, 40, 10, .45); }
.dl-master-photo { position: relative; margin: 0; padding: 12px 12px 46px; background: #fff; transform: rotate(-2.5deg); box-shadow: 0 1px 2px rgba(40, 30, 10, .18), 0 22px 36px -22px rgba(40, 30, 10, .55); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.dl-master:hover .dl-master-photo { transform: rotate(0); }
.dl-master-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.dl-master-photo .tape { top: -10px; }
.dl-master-photo figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 24px; color: var(--pencil); }
.dl-master-body { display: grid; gap: 14px; }
.dl-master-body .labs-mono { color: var(--brand); }
.dl-master-body h4 { margin: 0; font-family: "Noto Serif TC", serif; font-size: clamp(28px, 3vw, 38px); font-weight: 900; color: var(--ink); }
.dl-master-body h4 small { font-family: "Noto Sans TC", sans-serif; font-size: 16px; font-weight: 700; color: var(--ink-2); margin-left: 6px; }
.dl-master-body > p { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }
.dl-master-facts { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px dashed rgba(43, 42, 40, .25); }
.dl-master-facts li { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(43, 42, 40, .25); font-size: 14.5px; color: var(--ink-2); }
.dl-master-facts b { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--brand); }
.dl-link { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 2px solid var(--brand); color: var(--ink) !important; font-weight: 700; text-decoration: none !important; }
.dl-link i { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s; }
.dl-link:hover i { transform: translateX(4px) rotate(45deg); }

@media (max-width: 991px) {
	.dl-hero { padding-top: 104px; }
	.dl-hero::after { display: none; }
	.dl-hero-in { grid-template-columns: minmax(0, 1fr); padding: 0 20px; min-height: 0; gap: 56px; }
	.dl-board { max-width: 560px; width: 100%; margin: 0 auto 30px; }
	.dl-master { grid-template-columns: minmax(0, 1fr); }
	.dl-master-photo { max-width: 260px; }
}
@media (max-width: 680px) {
	.dl-hero h1 { font-size: 50px; }
	.dl-hero-lead { font-size: 15.5px; }
	.tape { width: 56px; height: 18px; margin-left: -28px; top: -9px; }
	.pin-in { padding: 5px 5px 7px; }
	.dl-note { bottom: -30px; font-size: 13px; }
	.dl-master-facts li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.pin { opacity: 1; } .dl-u svg path, .dl-doodle path { stroke-dashoffset: 0; } .dl-note { opacity: 1; }
}

/* 2026.10：改名「繪見故事設計繪畫實驗室」 */
.dl-hero h1 { font-size: clamp(44px, 5.6vw, 80px); }
.dl-hero h1 .dl-h1b { display: inline-block; margin-top: .1em; font-size: .7em; letter-spacing: .05em; white-space: nowrap; }
@media (max-width: 680px) { .dl-hero h1 { font-size: 46px; } }

/* ---------- 翻書閱讀器（繪本） ---------- */
.m-book .dlv-pages { display: grid; place-items: center; overflow: visible; }
.fb { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2600px; }
.fb-book { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.645, .045, .355, 1); cursor: pointer; }
.fb-book::before { content: ""; position: absolute; inset: -10px -12px -14px; border-radius: 6px; background: #5a3a2a; background: linear-gradient(90deg, #4a2f22, #6b4532 49.6%, #2c1b13 50%, #6b4532 50.4%, #4a2f22); box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .8); transition: clip-path .7s cubic-bezier(.645, .045, .355, 1); clip-path: inset(0 0 0 0); }
.fb-book.at-cover { transform: translateX(-25%); }
.fb-book.at-back { transform: translateX(25%); }
.fb-book.at-cover::before { clip-path: inset(0 0 0 50%); }
.fb-book.at-back::before { clip-path: inset(0 50% 0 0); }
.fb-half { position: absolute; top: 0; bottom: 0; width: 50%; background: #fbf8f2; overflow: hidden; }
.fb-l { left: 0; border-radius: 3px 0 0 3px; box-shadow: -1px 0 0 #e8e1d4, -3px 0 0 #fbf8f2, -4px 0 0 #e2dacb, -6px 0 0 #f7f3ea; }
.fb-r { right: 0; border-radius: 0 3px 3px 0; box-shadow: 1px 0 0 #e8e1d4, 3px 0 0 #fbf8f2, 4px 0 0 #e2dacb, 6px 0 0 #f7f3ea; }
.fb-half.empty { visibility: hidden; }
.fb-half img, .fb-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; }
.fb-blank { position: absolute; inset: 0; background: #fbf8f2; }
.fb-l::after, .fb-r::after, .fb-face::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14%; pointer-events: none; }
.fb-l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .06) 60%, rgba(0, 0, 0, .22)); }
.fb-r::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .06) 60%, rgba(0, 0, 0, .22)); }
.fb-book.is-single .fb-l { display: none; }
.fb-book.is-single .fb-r { left: 0; width: 100%; border-radius: 3px; }
.fb-book.is-single .fb-r::after { width: 6%; }
.fb-book.is-single::before { background: linear-gradient(90deg, #2c1b13, #6b4532 3%, #4a2f22); }
/* 翻動中的書頁 */
.fb-leaf { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.645, .045, .355, 1); }
.fb-leaf.r { left: 50%; transform-origin: 0 50%; }
.fb-leaf.l { left: 0; transform-origin: 100% 50%; }
.fb-leaf.r.turn { transform: rotateY(-180deg); }
.fb-leaf.l.turn { transform: rotateY(180deg); }
.fb-leaf.s-fwd, .fb-leaf.s-back { left: 0; width: 100%; transform-origin: 0 50%; }
.fb-leaf.s-fwd.turn { transform: rotateY(-180deg); opacity: 0; transition: transform .85s cubic-bezier(.645, .045, .355, 1), opacity .3s .55s; }
.fb-leaf.s-back { transform: rotateY(-180deg); opacity: 0; }
.fb-leaf.s-back.turn { transform: rotateY(0); opacity: 1; transition: transform .85s cubic-bezier(.645, .045, .355, 1), opacity .25s; }
.fb-face { position: absolute; inset: 0; overflow: hidden; background: #fbf8f2; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fb-face.back { transform: rotateY(180deg); }
.fb-leaf.r .front::after, .fb-leaf.l .back::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .2)); }
.fb-leaf.r .back::after, .fb-leaf.l .front::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .2)); }
.fb-face::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .12) 60%, rgba(0, 0, 0, .05)); opacity: 0; transition: opacity .85s; }
.fb-leaf.turn .fb-face::before { animation: fbShade .85s cubic-bezier(.645, .045, .355, 1); }
@keyframes fbShade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.fb-leaf .fb-face { box-shadow: 0 0 30px rgba(0, 0, 0, .25); }
.m-book .dlv-thumbs button.is-on { outline-color: #F6C177; }
@media (prefers-reduced-motion: reduce) { .fb-book, .fb-leaf { transition: none !important; } }

/* 紙張捲曲翻頁（2026.10 改版） */
.fb-book { cursor: grab; touch-action: none; }
.fb-book:active { cursor: grabbing; }
.fx { position: absolute; top: 0; z-index: 4; pointer-events: none; }
.fb-book.is-single .fx { overflow: hidden; }
.fx-under { position: absolute; inset: 0; overflow: hidden; }
.fx-sh { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .12) 35%, transparent); }
.fx-top { position: absolute; inset: 0; background: #fff; overflow: hidden; }
.fx-top::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 14%; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .06) 60%, rgba(0, 0, 0, .22)); }
.fb-book.is-single .fx-top::after { width: 6%; }
.fx-wrap { position: absolute; inset: 0; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .35)) drop-shadow(4px 6px 14px rgba(0, 0, 0, .25)); }
.fx-flap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; background: #fbf8f2; overflow: hidden; will-change: transform, clip-path; }
.fx-top img, .fx-flap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.fx-hl { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .18) 18%, rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.fb-half img { pointer-events: none; }
.fb-book.at-cover .fb-l, .fb-book.at-back .fb-r { visibility: hidden; }

/* 手機版流程步驟：七步一次排滿，不再左右捲動、不裁切 */
@media (max-width: 991px) {
	.dl-steps { overflow: visible; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px 0 0; }
	.dl-steps::before, .dl-steps::after { left: calc(100% / 14); right: calc(100% / 14); width: auto; top: 29px; }
}
@media (max-width: 680px) {
	.dl-steps { padding-top: 6px; margin-bottom: 22px; }
	.dl-steps::before, .dl-steps::after { top: 22px; }
	.dl-steps button { gap: 7px; }
	.dl-steps button i { width: 32px; height: 32px; font-size: 14px; }
	.dl-steps button[aria-selected="true"] i { box-shadow: 0 0 0 4px rgba(200, 80, 30, .16); transform: scale(1.06); }
	.dl-steps button span { font-size: 11.5px; line-height: 1.3; white-space: normal; text-align: center; width: 2.4em; }
}

/* ---------- 教室實景照片 ---------- */
.dl-photos { margin-top: 44px; }
.dl-photos-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.dl-photos-h .labs-mono { color: var(--brand); }
.dl-photos-h p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.dl-ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 160px; grid-auto-flow: dense; gap: 12px; }
.dl-ph { appearance: none; position: relative; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #ddd; cursor: zoom-in; font-family: inherit; }
.dl-ph.w2 { grid-column: span 2; }
.dl-ph.h2 { grid-row: span 2; }
.dl-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
.dl-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 52%); pointer-events: none; }
.dl-ph span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: #fff; text-align: left; }
.dl-ph b { font-size: 11.5px; letter-spacing: .06em; padding: 2px 8px; border-radius: 5px; background: var(--brand); }
.dl-ph small { font-size: 13.5px; font-weight: 700; line-height: 1.45; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.dl-ph:hover img { transform: scale(1.05); }
.dl-ph:hover small, .dl-ph:focus-visible small { opacity: 1; transform: none; }
.dl-ph:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 991px) { .dl-ph-grid { grid-auto-rows: 130px; } }
@media (max-width: 680px) {
	.dl-ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 8px; }
	.dl-ph small { display: none; }
	.dl-ph.w2.h2 { grid-row: span 2; }
}
