@font-face { font-family: "WK-SC"; src: url("fonts/wenkai-sc.woff2") format("woff2"); font-weight: 400 500; font-display: block; }
@font-face { font-family: "WK-TC"; src: url("fonts/wenkai-tc.woff2") format("woff2"); font-weight: 400 500; font-display: block; }
@font-face { font-family: "Andika"; src: url("fonts/andika.woff2") format("woff2"); font-weight: 400 500; font-display: block; size-adjust: 92%; }

:root {
  /* 纸与墨 */
  --paper: #F4EFE6;
  --paper-raised: #FBF8F2;
  --paper-sunk: #EAE3D6;
  --ink: #26221E;
  --ink-2: #5E5750;
  --ink-3: #9A9189;
  --hairline: #DDD4C4;
  --shadow-ink: 38,34,30;
  --silhouette: #2E2A26;
  --silhouette-soft: #D8CFBF;
  --guide: #F4EFE6;
  --zhupi: #B8322A;
  /* 七块 */
  --LT1: #C8432E; --LT2: #2C5F8E; --MT: #E0A13A; --SQ: #3F8064; --PG: #5E4F8C; --ST1: #B9446A; --ST2: #4E9C9C;
  /* 阴影：只有三档 */
  --elev-rest: 0 1px 2px rgba(var(--shadow-ink),.10);
  --elev-lift: 0 10px 24px rgba(var(--shadow-ink),.18), 0 2px 6px rgba(var(--shadow-ink),.10);
  --elev-float: 0 6px 20px rgba(var(--shadow-ink),.12);
  /* 缓动 */
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-in-out: cubic-bezier(.6,0,.2,1);
  --ease-stamp: cubic-bezier(.3,1.4,.5,1);
  --kai: "WK-SC", "Kaiti SC", "STKaiti", serif;
  --kai-tc: "WK-TC", "Kaiti SC", "STKaiti", serif;
  --sys: -apple-system, system-ui, "PingFang SC", "PingFang TC", "Helvetica Neue", sans-serif;
  --tex: none;
}
html { --zh: var(--kai); }
html[lang="zh-Hant"] { --zh: var(--kai-tc); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Andika", var(--zh);
  font-weight: 400;
  font-synthesis: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
body::before { /* 纸纹：渲染一次的 256px 平铺图，4% */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--tex); background-size: 256px 256px; opacity: .04;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 2px; }

/* 字号阶梯 */
.t-display { font-size: 56px; line-height: 1.1; font-weight: 500; }
.t-title { font-size: 32px; line-height: 1.25; font-weight: 500; }
.t-prompt { font-size: 26px; line-height: 1.4; font-weight: 400; }
.t-label { font-size: 20px; line-height: 1.3; font-weight: 500; }
.t-caption { font-size: 15px; line-height: 1.4; font-weight: 400; }
.ink2 { color: var(--ink-2); }
.ink3 { color: var(--ink-3); }

.ic { width: 24px; height: 24px; flex: none; display: block; }

/* 页面 */
#app { position: fixed; inset: 0; z-index: 1; }
.screen {
  position: absolute; inset: 0;
  padding: calc(32px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) calc(32px + env(safe-area-inset-left));
  display: flex; flex-direction: column;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.screen.enter { opacity: 0; transform: translateY(8px); }
.screen.leave { opacity: 0; pointer-events: none; }
.topbar { position: relative; z-index: 2; height: 56px; flex: none; display: flex; align-items: center; gap: 16px; }
.sp { flex: 1; }

/* 语言切换 */
.lang { display: flex; gap: 0; margin-right: -8px; }
.lang button { min-width: 60px; height: 60px; padding: 0 8px; font-size: 20px; line-height: 1; font-weight: 500; color: var(--ink-3); transition: color 160ms var(--ease-out); }
.lang button.on { color: var(--ink); }
.lang .lang-zh-Hans { font-family: var(--kai); }
.lang .lang-zh-Hant { font-family: var(--kai-tc); }
.lang .lang-en { font-family: "Andika", sans-serif; }

/* 按钮 */
.btn, .btn2 {
  position: relative; height: 56px; padding: 0 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 20px; line-height: 1.3; font-weight: 500; white-space: nowrap;
  transition: transform 80ms var(--ease-out), background-color 80ms var(--ease-out), opacity 260ms var(--ease-out);
}
.btn { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.97); background: var(--ink-2); }
.btn2 { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn2:active { transform: scale(.97); background: var(--paper-sunk); }
.btn2.small { height: 56px; padding: 0 24px; font-size: 15px; font-family: var(--sys); font-weight: 500; }
.ibtn {
  position: relative; width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--paper-raised); box-shadow: var(--elev-rest); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 80ms var(--ease-out), background-color 80ms var(--ease-out), opacity 160ms var(--ease-out);
}
.ibtn:active { transform: scale(.97); background: var(--paper-sunk); }
.btn::after, .btn2::after, .ibtn::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; } /* 命中区 ≥ 60pt */
.fade { opacity: 0; pointer-events: none; }

/* 纸卡 */
.card { background: var(--paper-raised); border-radius: 20px; box-shadow: var(--elev-rest); }

/* 印章（阴文：朱底纸字） */
.seal {
  background: var(--zhupi); color: var(--paper-raised); font-family: var(--zh); font-weight: 500;
  display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 4px;
}
.seal-sm { width: 52px; height: 52px; font-size: 20px; line-height: 1; writing-mode: vertical-rl; letter-spacing: 1px; padding-top: 1px; }
html[lang="en"] .seal { font-family: var(--kai); }

/* ---------- 首页 ---------- */
.home-main { flex: 1; display: flex; align-items: center; gap: 64px; padding: 0 16px; min-height: 0; }
.home-left { flex: none; width: 320px; display: flex; flex-direction: column; gap: 32px; }
.brand { display: flex; align-items: center; gap: 24px; }
.brand h1 { font-family: var(--zh); letter-spacing: 2px; }
html[lang="en"] .brand h1 { font-family: "Andika", sans-serif; letter-spacing: 0; }
.map-wrap { position: relative; width: 280px; height: 280px; }
.skillmap { display: block; overflow: visible; }
.seal-map { position: absolute; right: -16px; bottom: -16px; transform: rotate(-3deg); }
.learned { margin-top: -8px; }
.modules { flex: 1; max-width: 560px; margin-left: auto; padding: 8px 0; }
.mrow {
  width: 100%; height: 96px; display: flex; align-items: center; gap: 24px; padding: 0 32px; text-align: left;
  font-size: 20px; line-height: 1.3; font-weight: 500;
}
.mrow + .mrow { border-top: 1px solid var(--hairline); }
.mrow:active { background: var(--paper-sunk); }
.mrow:first-child { border-radius: 20px 20px 0 0; }
.mrow:last-child { border-radius: 0 0 20px 20px; }
.mnum { width: 28px; color: var(--ink-2); font-family: var(--zh); }
html[lang="en"] .mnum { font-family: "Andika", sans-serif; }
.mtitle { flex: 1; }
.mstat { font-family: "Andika", sans-serif; color: var(--ink-2); font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.mrow.locked .mtitle { color: var(--ink-2); }
.mrow.locked .mstat { color: var(--ink-3); }
.home-foot { height: 60px; flex: none; display: flex; align-items: center; }
.link { display: inline-flex; align-items: center; gap: 16px; height: 60px; padding: 0 8px 0 0; color: var(--ink); }
.parent-entry { height: 60px; min-width: 60px; padding: 0 4px; color: var(--ink-2); font-size: 15px; line-height: 1.4; font-weight: 400; }

/* ---------- 解题页 ---------- */
.ptitle { font-family: var(--zh); margin-left: 8px; white-space: nowrap; }
html[lang="en"] .ptitle { font-family: "Andika", sans-serif; }
.hintbtn { padding: 0 24px 0 16px; }
.hintbtn .ic { width: 24px; height: 24px; }
.stage { position: relative; flex: 1; margin-top: 16px; min-height: 0; touch-action: none; }
.tray { position: absolute; background: var(--paper-sunk); border-radius: 20px; transition: opacity 260ms var(--ease-out); }
.brighten { position: absolute; inset: calc(-120px - env(safe-area-inset-top)) -32px -32px -32px; background: var(--paper-raised); opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease-out); }
.brighten.on { opacity: .55; }
.sil, .pcs { position: absolute; left: 0; top: 0; overflow: visible; }
.sil { pointer-events: none; transition: opacity 300ms var(--ease-out); }
.sil.ink-in { animation: inkin 320ms var(--ease-out) both; }
@keyframes inkin { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
.sil.gone { opacity: 0; }
.tray.gone { opacity: 0; }
.pcs { pointer-events: none; touch-action: none; }
.pcs .pc { pointer-events: auto; cursor: grab; }
.pcs .hit { pointer-events: all; }
.texfill { mix-blend-mode: multiply; opacity: .06; }
.seam { transition: stroke-width 120ms var(--ease-out); }
.pcs.sealed .seam { stroke-width: 0; }
.ghost { pointer-events: none; }

.hintbar {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 16px;
  padding: 16px 24px 16px 16px; background: var(--paper-raised); border-radius: 16px; box-shadow: var(--elev-float);
  font-family: var(--zh); opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
html[lang="en"] .hintbar { font-family: "Andika", sans-serif; }
.hintbar.on { opacity: 1; transform: none; }
.hintbar .sym { width: 32px; height: 32px; color: var(--zhupi); }
.zp { fill: none; stroke: var(--zhupi); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: write 400ms var(--ease-out) forwards; }
.zp1 { stroke-width: 3.4; }
.zpu { stroke: var(--paper); stroke-opacity: .9; }
.zpu.zp1 { stroke-width: 6.4; }
.zpu.zp2 { stroke-width: 4.8; }
.zp2 { stroke-width: 1.8; animation-delay: 40ms; }
@keyframes write { to { stroke-dashoffset: 0; } }

.flipbtn { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; z-index: 3; }
.flipbtn.on { opacity: 1; pointer-events: auto; }

/* 完成：落款 */
.done-ui { position: absolute; inset: 0; pointer-events: none; }
.seal-done {
  position: absolute; width: 88px; height: 88px; font-size: 56px; line-height: 1; padding-bottom: 4px;
  opacity: 0; transform: rotate(-3deg) scale(1.15);
}
.seal-done.down { opacity: 1; transform: rotate(-3deg) scale(1); transition: transform 180ms var(--ease-stamp), opacity 60ms linear; pointer-events: auto; }
.seal-done[data-len="2"] { font-size: 32px; writing-mode: vertical-rl; letter-spacing: 2px; }
.seal-done[data-len="3"], .seal-done[data-len="4"] { font-size: 26px; line-height: 1.15; writing-mode: vertical-rl; }
.seal-done[data-len="5"], .seal-done[data-len="6"] { font-size: 20px; line-height: 1.15; writing-mode: vertical-rl; }
.seal-ring { position: absolute; width: 88px; height: 88px; border-radius: 4px; border: 2px solid var(--zhupi); opacity: 0; transform: rotate(-3deg); }
.seal-ring.go { animation: inkspread 240ms var(--ease-out); }
@keyframes inkspread { from { opacity: .35; transform: rotate(-3deg) scale(1); } to { opacity: 0; transform: rotate(-3deg) scale(1.06); } }
.used { position: absolute; display: flex; align-items: center; white-space: nowrap; font-family: var(--zh); opacity: 0; transition: opacity 260ms var(--ease-out); }
html[lang="en"] .used { font-family: "Andika", sans-serif; }
.used.on { opacity: 1; }
.used .lead { margin-right: 8px; }
.used .tech { display: inline-flex; align-items: center; gap: 8px; }
.used .sym { width: 24px; height: 24px; color: var(--ink); }
.used .dot { color: var(--ink-3); padding: 0 8px; }
.done-btns { position: absolute; display: flex; gap: 16px; opacity: 0; transition: opacity 260ms var(--ease-out); }
.done-btns.on { opacity: 1; pointer-events: auto; }
.instant, .instant * { transition: none !important; animation-duration: 0s !important; }

/* 长按英文气泡 */
#bubble {
  position: fixed; z-index: 50; max-width: 520px; padding: 8px 16px; border-radius: 12px;
  background: var(--ink); color: var(--paper); box-shadow: var(--elev-float);
  font-family: "Andika", sans-serif; font-size: 26px; line-height: 1.4; pointer-events: none;
  opacity: 0; transition: opacity 120ms var(--ease-out);
}
#bubble.on { opacity: 1; }
#bubble::after { content: ""; position: absolute; left: calc(var(--tip, 50%) - 6px); bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }

/* ---------- 家长区 ---------- */
.parent { font-family: var(--sys); }
.p-title { font-size: 20px; line-height: 1.3; font-weight: 600; margin-left: 8px; }
.p-main { flex: 1; display: flex; gap: 32px; margin-top: 24px; min-height: 0; }
.p-nav { width: 200px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.p-tab { height: 60px; padding: 0 24px; border-radius: 16px; text-align: left; font-size: 20px; font-weight: 500; color: var(--ink-2); }
.p-tab.on { background: var(--paper-sunk); color: var(--ink); }
.p-body { flex: 1; padding: 32px 48px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; -webkit-user-select: text; user-select: text; }
.p-h { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 8px; }
.p-note { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-bottom: 16px; max-width: 620px; }
.p-note.msg { margin-top: 16px; color: var(--ink); }
.p-row { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 15px; }
.p-row:first-of-type { border-top: 0; }
.p-name { flex: 1; }
.kai { font-family: var(--zh); font-size: 20px; }
.p-num { color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.p-st { color: var(--ink-2); font-size: 15px; min-width: 64px; text-align: right; }
.p-color { width: 64px; font-size: 15px; color: var(--ink-2); }
.swatch { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.toggle { position: relative; width: 60px; height: 36px; border-radius: 999px; background: var(--paper-sunk); border: 1px solid var(--hairline); transition: background-color 160ms var(--ease-out); }
.toggle .knob { position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-raised); box-shadow: var(--elev-rest); transition: transform 160ms var(--ease-out); }
.toggle::after { content: ""; position: absolute; inset: -13px -4px; } /* 命中区 ≥ 60pt */
.toggle.on { background: var(--ink); border-color: var(--ink); }
.toggle.on .knob { transform: translateX(24px); }
.charsheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 16px; margin-top: 16px; }
.charsheet .cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tian { position: relative; width: 76px; height: 76px; border: 1px dashed var(--hairline); display: flex; align-items: center; justify-content: center; }
.tian::before, .tian::after { content: ""; position: absolute; }
.tian::before { left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--hairline); }
.tian::after { top: 50%; left: 0; right: 0; border-top: 1px dashed var(--hairline); }
.tian .ch { position: relative; z-index: 1; font-family: var(--kai); font-size: 56px; line-height: 1; font-weight: 400; }
.charsheet.tc .ch, .charsheet.tc .word { font-family: var(--kai-tc); }
.charsheet .word { font-family: var(--kai); font-size: 15px; color: var(--ink-2); white-space: nowrap; }

/* ---------- 自检页 ---------- */
body.selftest { overflow: auto; -webkit-user-select: text; user-select: text; }
body.selftest #app { position: static; }
.report { padding: 32px; font: 14px/1.55 ui-monospace, Menlo, monospace; white-space: pre-wrap; }

/* ---------- 打印字表：A4，每行 6 个田字格，无背景纹理 ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body, html { background: #fff !important; overflow: visible; height: auto; }
  body::before { display: none; }
  body * { visibility: hidden; }
  .charsheet, .charsheet * { visibility: visible; }
  .charsheet { position: absolute; left: 0; top: 0; width: 100%; grid-template-columns: repeat(6, 1fr); gap: 6mm 4mm; margin: 0; }
  .tian { width: 26mm; height: 26mm; }
  .tian .ch { font-size: 19mm; color: #000; }
  .charsheet .word { font-size: 9pt; color: #333; }
  #app, .screen, .p-main, .p-body { position: static; overflow: visible; box-shadow: none; background: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.enter { transform: none; }
  .sil.ink-in { animation-name: fadein; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  .seal-done { transform: rotate(-3deg); }
  .seal-done.down { transition: opacity 180ms linear; }
  .seal-ring.go { animation: none; }
  .hintbar { transform: none; }
}

/* 竖屏 */
@media (orientation: portrait) {
  .screen { padding-left: calc(24px + env(safe-area-inset-left)); padding-right: calc(24px + env(safe-area-inset-right)); }
  .home-main { flex-direction: column; justify-content: center; gap: 48px; }
  .home-left { align-items: center; }
  .modules { margin: 0; width: 100%; }
}

/* ---------- 模块页 ---------- */
.mhead { display: flex; gap: 16px; font-family: var(--zh); margin-left: 8px; }
html[lang="en"] .mhead { font-family: "Andika", sans-serif; }
.tiles-wrap { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 24px; padding: 4px 4px 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px 16px; min-height: 176px; font-family: var(--zh); }
html[lang="en"] .tile { font-family: "Andika", sans-serif; }
.tile:active { background: var(--paper-sunk); }
.tile .thumb { height: 88px; display: flex; align-items: center; justify-content: center; }
.tile .tsym .ic { width: 56px; height: 56px; color: var(--ink); }
.tile .tlabel { font-size: 20px; line-height: 1.3; font-weight: 500; text-align: center; }
.tile .tstat { font-family: "Andika", sans-serif; color: var(--ink-2); font-size: 15px; min-height: 22px; }
.tile .tstat .ic { width: 20px; height: 20px; }

/* ---------- 模块一：大小三格、角 ---------- */
.bins { position: absolute; inset: 0; pointer-events: none; }
.bin { position: absolute; background: var(--paper-sunk); border-radius: 20px; display: flex; justify-content: center; padding-top: 16px; transition: opacity 260ms var(--ease-out); }
.binlabel { font-family: var(--zh); color: var(--ink-2); }
html[lang="en"] .binlabel { font-family: "Andika", sans-serif; }
.cm { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cmu { stroke: var(--paper); stroke-width: 6; stroke-opacity: .9; }
.btn.off { opacity: .35; pointer-events: none; }
.pright { display: flex; align-items: center; }

/* ---------- 作品命名字卡 ---------- */
.naming { position: absolute; inset: -8px; z-index: 5; background: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 8px; transition: opacity 260ms var(--ease-out); }
.naming.gone { opacity: 0; pointer-events: none; }
.naming h3 { font-family: var(--zh); }
html[lang="en"] .naming h3 { font-family: "Andika", sans-serif; }
.namegrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; width: 100%; max-width: 900px; }
.namecard { height: 84px; border-radius: 16px; background: var(--paper-raised); box-shadow: var(--elev-rest); font-family: var(--zh); font-size: 32px; line-height: 1; font-weight: 400; }
html[lang="en"] .namecard { font-family: "Andika", sans-serif; font-size: 20px; }
.namecard:active { background: var(--paper-sunk); }

/* ---------- 技巧课开场 ---------- */
.lesson-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 0; }
.lsym .ic { width: 96px; height: 96px; color: var(--ink); }
.lname { font-family: var(--zh); }
html[lang="en"] .lname { font-family: "Andika", sans-serif; }
.demo-wrap { flex: 1; width: 100%; min-height: 0; }
.demo { width: 100%; height: 100%; display: block; }
.dm { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dmu { stroke: var(--paper); stroke-width: 6; stroke-opacity: .9; }
.dm.dash { stroke-dasharray: 6 6; }
.lesson-foot { height: 60px; flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.lesson .replay, .lesson .lesson-foot .btn { display: none; }
.lesson.demo-done .replay, .lesson.demo-done .lesson-foot .btn { display: inline-flex; }
.lesson.demo-done .lesson-foot .btn2 { display: none; }

/* ---------- 作品集：册页 ---------- */
.pages { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin-top: 16px; scrollbar-width: none; touch-action: pan-x; }
.pages::-webkit-scrollbar { display: none; }
.page { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 8px; }
.leaf { position: relative; width: min(720px, 100%); height: 100%; max-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; }
.leaf-art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.leaf-art svg { max-height: 100%; width: auto; }
.seal-leaf { position: absolute; right: 48px; bottom: 136px; width: 72px; height: 72px; font-size: 46px; transform: rotate(-3deg); }
.seal-leaf[data-len="2"] { font-size: 26px; writing-mode: vertical-rl; letter-spacing: 2px; }
.seal-leaf[data-len="3"], .seal-leaf[data-len="4"] { font-size: 20px; line-height: 1.15; writing-mode: vertical-rl; }
.seal-leaf[data-len="5"], .seal-leaf[data-len="6"] { font-size: 15px; line-height: 1.15; writing-mode: vertical-rl; }
.leaf-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.thumbs { height: 88px; flex: none; display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 16px; overflow-x: auto; }
.thumbbtn { width: 72px; height: 72px; border-radius: 16px; background: var(--paper-raised); box-shadow: var(--elev-rest); display: flex; align-items: center; justify-content: center; flex: none; }
.album-empty { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--zh); }

/* 家长区作品 */
.p-works { display: flex; flex-wrap: wrap; gap: 16px; }
.p-work { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* 编辑器导出 */
pre.export { position: absolute; left: 0; right: 0; bottom: 0; max-height: 40%; overflow: auto; background: var(--paper-raised); padding: 12px; font: 12px/1.4 ui-monospace, monospace; white-space: pre-wrap; word-break: break-all; z-index: 6; -webkit-user-select: text; user-select: text; }
