/* 认真体 — 站点样式
 * 原则：一支笔（所有手写和简笔画用同一支勾线笔）；大量留白；每一屏只有一个手写主角；
 * 小字很小、字距很宽，但是黑的；红色只给「老师的批改」，绿色只给小芽。 */
@font-face { font-family: "Jost"; src: url(fonts/jost-latin.woff2?v=180347d9) format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url(fonts/jost-latin-ext.woff2?v=7a55c062) format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Renzhen UI"; src: url(fonts/ui-sc-300.woff2?v=2f4178f6) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Renzhen UI"; src: url(fonts/ui-sc-500.woff2?v=d6abfa19) format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --card: #fffefb;
  --ink: #1d1b18;
  --ink-2: #1d1b18;
  --mute: #1d1b18;   /* 小字也是墨色：靠字号、粗细、字距分层次 */
  --line: #e4e0d6;
  --green: #8db33a;
  --green-2: #b9d48a;
  --red: #d4452e;
  --gut: clamp(20px, 6vw, 112px);
  --sec: clamp(130px, 18vh, 230px);
  --sans: "Jost", "Renzhen UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --zh: "Renzhen UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  /* 手画的框：外框和实心两种 */
  --box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 48' preserveAspectRatio='none'%3E%3Cpath d='M7 8.5 C46 4.5 128 6.2 193.5 4.8 C196.4 17 195.6 31 195.2 42.6 C140 44.6 62 43.4 5.4 44.8 C3.6 33 3.2 20.6 5.2 6.6' fill='none' stroke='%231d1b18' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --box-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 48' preserveAspectRatio='none'%3E%3Cpath d='M7 8.5 C46 4.5 128 6.2 193.5 4.8 C196.4 17 195.6 31 195.2 42.6 C140 44.6 62 43.4 5.4 44.8 C3.6 33 3.2 20.6 7 8.5 Z' fill='%231d1b18' stroke='%231d1b18' stroke-width='1.6' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M3.2 2.6 C30 1.6 68 2.4 97.2 1.9 C98.2 30 97.6 66 98.1 97.4 C70 98.3 31 97.6 2.4 98.2 C1.7 68 2.3 31 1.8 4.4' fill='none' stroke='%231d1b18' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M58 8 C30 4 7 22 8 50 C9 78 30 94 55 92 C82 90 95 70 93 46 C91 22 74 9 46 11' fill='none' stroke='%231d1b18' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --uline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 4.6 C20 3.2 40 5.4 60 3.8 C75 2.8 88 4.4 99 3.4' fill='none' stroke='%231d1b18' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background-color: var(--paper); color: var(--ink);
  font: 300 15px/1.85 var(--zh); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image: var(--grain);
  overflow-x: hidden; overflow-x: clip;
  position: relative;   /* 跟着写字的笔（.pen，绝对定位）以 body 为准，写到最右边时被 body 裁掉，不把手机页面撑宽 */
}
p, li { text-wrap: pretty; }
::selection { background: rgba(141, 179, 58, .28); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-tap-highlight-color: transparent; }
canvas { display: block; }
code { font: 400 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; text-decoration: none; font-size: 13px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- 顶栏：实色纸、往下滚时收起、往上滚时出来 ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 66px; padding: 0 var(--gut);
  display: flex; align-items: center; gap: 26px; background: var(--paper);
  transition: transform .45s steps(4), box-shadow .3s steps(3);
}
.bar.scrolled { box-shadow: 0 1px 0 var(--line); }
.bar.hide { transform: translateY(-101%); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; }
.brand-word { height: 26px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 12.5px; letter-spacing: .2em; text-decoration: none; color: var(--ink); padding: 6px 0; background: var(--uline) 0 100% / 0 6px no-repeat; transition: background-size .3s steps(4); }
.nav a:hover { background-size: 100% 6px; }
.duty { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 6px 4px 2px; }
.duty-face { width: 34px; height: 34px; transition: transform .25s steps(3); }
.duty:hover .duty-face { transform: rotate(-10deg); }
.duty-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.duty-txt small { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; color: var(--ink); }
.duty-txt b { font: 500 12.5px var(--zh); letter-spacing: .12em; white-space: nowrap; }
.duty-wrap { position: relative; }
.duty-caret { width: 11px; height: 8px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-left: 2px; transition: transform .25s steps(3); }
.duty[aria-expanded="true"] .duty-caret { transform: rotate(180deg); }
/* 选谁值日：和田字格一样的手画框，纸色底，没有阴影 */
.duty-menu { position: absolute; top: calc(100% + 10px); right: -10px; z-index: 25; width: 272px; padding: 16px 18px 12px; background: var(--paper) var(--frame) center / 100% 100% no-repeat; opacity: 0; transform: translateY(-4px); transition: opacity .2s steps(3), transform .2s steps(3); }
.duty-menu.on { opacity: 1; transform: none; }
.duty-menu[hidden] { display: none; }
.duty-menu-t { margin: 0 0 4px 4px; font-size: 11px; font-weight: 500; letter-spacing: .26em; }
.duty-list { display: flex; flex-direction: column; }
.duty-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 6px 4px; cursor: pointer; text-align: left; color: var(--ink); }
.duty-item:first-child { border-top: 0; }
.duty-item .av { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.duty-item.on .av { background: var(--ring) center / 100% 100% no-repeat; }
.duty-item canvas { width: 36px; height: 36px; }
.duty-item .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.duty-item b { font: 500 13px/1.35 var(--zh); letter-spacing: .1em; white-space: nowrap; padding-bottom: 3px; background: var(--uline) 0 100% / 0 5px no-repeat; transition: background-size .3s steps(4); }
.duty-item:hover b, .duty-item:focus-visible b, .duty-item.on b { background-size: 100% 5px; }
.duty-item small { font: 400 10.5px/1.3 "Jost", var(--zh); letter-spacing: .2em; }
.sound { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; padding: 0; }
.menu { display: none; white-space: nowrap; border: 0; background: var(--uline) 0 100% / 100% 5px no-repeat; padding: 4px 0 6px; font-size: 12.5px; letter-spacing: .2em; cursor: pointer; }
.duty-inline { white-space: nowrap; }
.sound canvas { width: 34px; height: 34px; }

/* ---------- 开场 ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.gloss { position: absolute; margin: 0; font: 400 14px/1 "Jost", var(--zh); letter-spacing: .06em; color: var(--ink); opacity: 0; transition: opacity .5s steps(4); white-space: nowrap; }
.gloss span span { font: 500 15px var(--zh); letter-spacing: 0; }
.gloss .g1 { position: relative; transition: color .3s steps(3); }
.gloss .g1::after { content: none; }
.gloss .g1 > span { position: relative; display: inline-block; }
.gloss .g1 > span::after { content: ""; position: absolute; left: -3px; right: -3px; top: -2px; bottom: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' preserveAspectRatio='none'%3E%3Cpath d='M2 3 L18 18 M18 2.5 L2.5 18.5' fill='none' stroke='%23d4452e' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 0 100% no-repeat; transition: background-size .25s steps(3); }
.gloss.fixed .g1 > span::after { background-size: 100% 100%; }
.gloss .g2 { display: none; }
.gloss.on { opacity: 1; }

.hero-copy { position: absolute; left: var(--gut); bottom: calc(15vh + 26px); max-width: 30em; }
.hero-copy p { margin: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s steps(3), transform .5s steps(3); }
.hero-copy.on p { opacity: 1; transform: none; }
.hero-copy.on .hero-en { transition-delay: .25s; }
.hero-zh { font: 400 clamp(17px, 1.6vw, 22px)/1.5 var(--zh); letter-spacing: .32em; }
.hero-en { font: 400 12.5px/1.75 "Jost", sans-serif; letter-spacing: .03em; color: var(--ink); margin-top: 10px !important; }
.hero-meta { position: absolute; left: var(--gut); right: var(--gut); bottom: 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; font: 500 11px/1.4 "Jost", var(--zh); letter-spacing: .22em; color: var(--ink); text-transform: uppercase; }
.hero-meta .meta-r { text-align: right; text-transform: none; }
.hero-meta b { font-weight: 500; }
.hero-scroll canvas { width: 64px; height: 64px; }

/* ---------- 通用段落 ---------- */
.sec { position: relative; padding: var(--sec) var(--gut) 0; max-width: 1600px; margin: 0 auto; }
.sec-head { max-width: 34em; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sec-head.row .lede { max-width: 25em; margin: 0 0 6px; }
.idx { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 500 11.5px/1 var(--sans); letter-spacing: .3em; color: var(--ink); }
.idx span { font-family: "Jost", sans-serif; letter-spacing: .12em; }
.idx span::after { content: ""; display: inline-block; width: 22px; height: 6px; margin-left: 12px; vertical-align: middle; background: var(--uline) center / 100% 100% no-repeat; }
.hand-title { margin: 0; line-height: 0; min-height: 30px; }
.hand-title canvas { max-width: none; }
.lede { color: var(--ink); max-width: 30em; margin: 24px 0 0; font-size: 15px; }
.nb { white-space: nowrap; }
.hint { font-size: 12.5px; color: var(--ink); letter-spacing: .14em; margin: 30px 0 12px; }
.hint .arrow { display: inline-block; margin-right: 8px; }
.btn { border: 0; background: var(--box) center / 100% 100% no-repeat; color: var(--ink); padding: 10px 22px 11px; font-size: 13px; letter-spacing: .18em; cursor: pointer; transition: transform .2s steps(3); white-space: nowrap; }
.btn:hover { transform: rotate(-1.5deg); }
.btn:active { transform: translateY(1px); }
.btn.solid { background-image: var(--box-fill); color: var(--paper); }
a.btn { text-decoration: none; display: inline-block; text-align: center; }
.seg { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 10px; font-size: 12.5px; letter-spacing: .12em; cursor: pointer; color: var(--ink-2); }
.seg button.on { color: var(--ink); background: var(--ring) center / 100% 100% no-repeat; }
.arr { width: 26px; height: 11px; margin-left: 10px; vertical-align: -1px; overflow: visible; }
.arr path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 01 每个字都不一样 ---------- */
.alike { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(28px, 6vw, 110px); align-items: center; }
.picker { display: flex; gap: 6px; flex-wrap: wrap; }
.picker button { width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 0; transition: transform .2s steps(3); }
.picker button:hover { transform: rotate(-6deg); }
.picker canvas { width: 46px; height: 46px; }
.sheet-wrap { position: relative; justify-self: end; width: 100%; max-width: 760px; }
.sheet { width: 100%; height: auto; touch-action: manipulation; }

/* ---------- 02 试写 ---------- */
.desk { position: relative; margin-top: 48px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; padding: 16px clamp(16px, 2.6vw, 34px); border-bottom: 1px dashed var(--line); }
.tool { display: flex; align-items: center; gap: 10px; }
.tool-label { font-size: 11.5px; font-weight: 500; letter-spacing: .24em; color: var(--ink); white-space: nowrap; }
.tool .num { font: 500 12px "Jost", sans-serif; letter-spacing: .04em; min-width: 2.4em; }
.slide input[type=range], .knob input[type=range] { -webkit-appearance: none; appearance: none; width: 120px; height: 24px; margin: 0; background: var(--uline) center / 100% 6px no-repeat; cursor: pointer; }
.slide input[type=range]::-webkit-slider-thumb, .knob input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.5 2.2 C6 1.4 2.2 5.4 2.6 10.4 C3 15.2 6.6 18 11 17.6 C15.6 17.2 18 13.6 17.4 9.2 C16.9 5.2 14 2.6 9.4 2.8' fill='%23fffefb' stroke='%231d1b18' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.slide input[type=range]::-moz-range-thumb, .knob input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.5 2.2 C6 1.4 2.2 5.4 2.6 10.4 C3 15.2 6.6 18 11 17.6 C15.6 17.2 18 13.6 17.4 9.2 C16.9 5.2 14 2.6 9.4 2.8' fill='%23fffefb' stroke='%231d1b18' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.slide input[type=range]::-moz-range-track, .knob input[type=range]::-moz-range-track { background: transparent; }
.who { display: flex; gap: 2px; }
.who button { width: 42px; height: 42px; border: 0; background: none; padding: 0; cursor: pointer; }
.who button.on { background: var(--ring) center / 100% 100% no-repeat; }
.who canvas { width: 36px; height: 36px; margin: auto; }
.inks { display: flex; gap: 6px; }
.inks button { width: 24px; height: 24px; border: 0; cursor: pointer; padding: 0; background: none; }
.inks button i { display: block; width: 14px; height: 14px; margin: auto; border-radius: 50% 45% 52% 48%; box-shadow: inset 0 0 0 1px rgba(29, 27, 24, .22); }
.inks button.on { background: var(--ring) center / 100% 100% no-repeat; }
.paper-wrap { position: relative; cursor: text; }
.paper { width: 100%; height: clamp(240px, 36vh, 380px); }
.ghost-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; resize: none; font-size: 16px; padding: 0; cursor: text; }
.desk-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px clamp(16px, 2.6vw, 34px) 16px; border-top: 1px dashed var(--line); }
.desk-hint { margin: 0; font-size: 12px; letter-spacing: .1em; color: var(--ink); }
.desk-hint code { margin: 0 3px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 03 写字的人 ---------- */
.writers-grid { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: clamp(28px, 4vw, 70px); align-items: start; }
.writers-head { position: sticky; top: 14vh; }
.writers-head .reroll { justify-content: flex-start; margin-top: 30px; }
.rows { border-top: 1.5px solid var(--ink); margin-top: 6px; }
.wrow { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.who-cell { display: flex; align-items: center; gap: 12px; }
.who-cell canvas { width: 44px; height: 44px; flex: none; }
.who-cell h3 { margin: 0; font: 500 13px/1.5 var(--zh); letter-spacing: .1em; white-space: nowrap; }
.who-cell small { display: block; font: 400 10.5px "Jost", sans-serif; letter-spacing: .24em; color: var(--mute); }
.who-cell .duty-me { margin-top: 4px; border: 0; background: var(--uline) 0 100% / 100% 5px no-repeat; padding: 0 0 3px; font-size: 11.5px; letter-spacing: .14em; cursor: pointer; color: var(--ink-2); }
.who-cell .duty-me[disabled] { background: none; color: var(--ink); cursor: default; }
.wrow .txt, .wrow .notes { width: 100%; height: auto; }
.reroll { margin-top: 36px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.roll-head { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 22px; padding: 10px 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .3em; }

/* ---------- 03 调一个自己的 ---------- */
.mine { margin-top: clamp(100px, 14vh, 170px); }
.mine-head { max-width: 36em; }
.mine-lede { margin: 22px 0 0; font-size: 15px; max-width: 32em; }
.mine-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.4vw, 72px); margin-top: 44px; padding-top: 26px; border-top: 1.5px solid var(--ink); align-items: start; }
.mine-stage { position: sticky; top: 84px; }
.mine-paper canvas { width: 100%; height: auto; }
.mine-try { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mine-try input, .mine-name input, .make-panel textarea, .make-panel input[type=text] { min-width: 0; border: 0; border-radius: 0; background: var(--uline) 0 100% / 100% 6px no-repeat; padding: 5px 2px 9px; font: 400 15px/1.6 var(--zh); letter-spacing: .04em; color: var(--ink); outline-offset: 4px; }
.mine-try input { flex: 1; }
.mine-try input::placeholder { color: var(--ink); opacity: .42; }
.mine-from { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.knobs { border: 0; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); min-width: 0; }
.knobs legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .3em; }
.knob { clear: both; display: grid; grid-template-columns: 5.4em minmax(0, 1fr) 5.4em; align-items: center; gap: 12px; min-height: 36px; font-size: 12.5px; letter-spacing: .06em; cursor: pointer; }
.knob .a { text-align: right; white-space: nowrap; }
.knob .b { white-space: nowrap; }
.knob input[type=range] { width: 100%; }
.knob.dots { grid-template-columns: 5.4em minmax(0, 1fr); cursor: default; }
.mine-teach { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mine-teach > .btn.on { background: var(--box-fill) center / 100% 100% no-repeat; color: var(--paper); }
.teach-lede { margin: 14px 0 12px; font-size: 12.5px; letter-spacing: .04em; }
.pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pad { position: relative; aspect-ratio: 1; background: var(--card) var(--box) center / 100% 100% no-repeat; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad .lab { position: absolute; left: 7px; bottom: 4px; font-size: 11px; letter-spacing: .04em; pointer-events: none; }
.pad.cur .lab { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.teach .actions { margin-top: 12px; }
.mine-name { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.mine-name input { flex: 1; font-size: 17px; }
.mine-panel .actions { margin-top: 18px; }
.mine-note { margin: 12px 0 0; min-height: 1.85em; font-size: 12.5px; letter-spacing: .06em; }

/* ---------- 04 用起来：写一张公告，存下来 ---------- */
.make { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.4vw, 72px); margin-top: 52px; align-items: start; }
.make-stage { position: sticky; top: 84px; display: flex; justify-content: center; min-height: 200px; }
.make-stage canvas { border: 1px solid var(--line); }
.make-stage canvas.clear { background: repeating-conic-gradient(#efece4 0 25%, transparent 0 50%) 0 0 / 18px 18px; }
.make-panel .field { display: block; margin: 0 0 18px; }
.make-panel .field > .tool-label { display: block; margin-bottom: 8px; }
.make-panel .field.row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.make-panel .field.row > .tool-label { margin: 0; }
.make-panel textarea, .make-panel input[type=text] { width: 100%; resize: none; display: block; overflow: hidden; }
.tpls { gap: 2px 4px; }
.syntax { margin: -4px 0 20px; font-size: 12px; letter-spacing: .08em; }
.syntax code { margin-left: 8px; white-space: nowrap; display: inline-block; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; cursor: pointer; }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
/* 「到自由画布里接着改」 */
.make-panel .field.free { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 30px 0 0; padding-top: 22px; border-top: 1px dashed var(--line); }
.free-note { font-size: 12.5px; letter-spacing: .06em; }
.free-take { font-size: 12.5px; letter-spacing: .08em; color: var(--ink); text-decoration: none; padding-bottom: 3px; background: var(--uline) 0 100% / 100% 5px no-repeat; transition: transform .2s steps(3); }
.free-take:hover, .free-take:focus-visible { background-size: 100% 6px; transform: rotate(-1deg); }
.make-out { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.4vw, 72px); margin-top: 64px; padding-top: 22px; border-top: 1.5px solid var(--ink); align-items: start; }
.ex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 30px; }
.ex-list > .tool-label { grid-column: 1 / -1; margin: 0 0 6px; }
.ex { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 0; row-gap: 5px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 0 18px; cursor: pointer; transition: transform .25s steps(3); }
.ex:hover { transform: translateX(4px) rotate(-.4deg); }
.ex b { font: 400 17px/1.4 var(--zh); letter-spacing: .08em; }
.ex span { grid-column: 1 / -1; font-size: 12.5px; letter-spacing: .06em; }
.ex .arr.dl { transform: rotate(90deg) scale(.8); transform-origin: 13px 6px; margin-left: 4px; }
.ex.busy { cursor: progress; }
.embed > .tool-label { margin: 0 0 12px; }
.embed pre { margin: 0; padding: 16px 20px 17px; background: var(--box) center / 100% 100% no-repeat; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed code { font-size: 12px; line-height: 1.75; }
.embed-note { margin: 12px 0 16px; font-size: 12.5px; letter-spacing: .06em; }
.inline { text-decoration: none; background: var(--uline) 0 100% / 100% 6px no-repeat; padding-bottom: 3px; }

/* 开场：值日生写完，把笔放下（点一下再写一遍） */
.hero-pen { position: absolute; left: 0; top: 0; width: 40px; height: 150px; margin: -140px 0 0 -20px; padding: 0; border: 0; background: none; transform-origin: 20px 140px; opacity: 0; visibility: hidden; transition: opacity .35s steps(3), visibility 0s .35s; cursor: pointer; z-index: 2; }
.hero-pen.on { opacity: 1; visibility: visible; transition: opacity .35s steps(3); }
.hero-pen svg { overflow: visible; display: block; pointer-events: none; transition: transform .25s steps(3); transform-origin: 20px 140px; }
.hero-pen:hover svg { transform: rotate(-5deg) translateY(-3px); }

/* ---------- 05 字库 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 40px; }
.stat canvas { height: clamp(80px, 10.5vw, 168px); width: auto; max-width: 100%; }
.stat p { margin: 12px 0 0; font-size: 14.5px; letter-spacing: .12em; }
.stat p span { font-size: 12.5px; color: var(--ink-2); letter-spacing: .06em; }
.specimen { margin-top: 56px; border-top: 1.5px solid var(--ink); }
.fall, .marks { width: 100%; height: auto; }
.marks { border-top: 1px solid var(--line); }
.board-wrap { position: relative; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.board { width: 100%; height: auto; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font: 400 12px/1.5 var(--sans); letter-spacing: .12em; padding: 6px 10px; white-space: nowrap; transform: translate(-50%, -100%); }

/* ---------- 06 拿去用 ---------- */
.take-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin-top: 80px; border-top: 1.5px solid var(--ink); }
.take-list .take-row { border-bottom: 0; }
.take-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); margin-top: 56px; align-items: start; }
.take-list { border-top: 1.5px solid var(--ink); }
.take-row { display: flex; flex-direction: column; gap: 6px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); text-decoration: none; transition: transform .25s steps(3); }
.take-row:hover { transform: translateX(4px) rotate(-.4deg); }
.take-row .k { font-size: 11.5px; font-weight: 500; letter-spacing: .26em; }
.take-row .v { font: 400 18px/1.4 var(--zh); letter-spacing: .08em; }
.take-row .s { font-size: 12.5px; color: var(--ink-2); text-wrap: balance; }
.takes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1.5px solid var(--ink); }
.take-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 34px; text-decoration: none; text-align: left; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; transition: transform .25s steps(3); }
.take-card:first-child { border-left: 0; padding-left: 0; }
.take-card:hover { transform: translateY(-3px) rotate(-.6deg); }
.take-card .k { font-size: 11.5px; letter-spacing: .26em; color: var(--ink); }
.take-card .v { font: 400 19px/1.45 var(--zh); letter-spacing: .08em; }
.take-card .v b { font-weight: 500; }
.take-card .s { font-size: 12.5px; color: var(--ink-2); }
.takes.fonts { margin-top: 20px; }
/* 下载的字体：每个字写几种（默认 1 种） */
.vpick { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.vpick .seg button { min-width: 2.4em; padding: 6px 8px; font: 500 13px/1 "Jost", var(--sans); letter-spacing: 0; }
.vpick-hint { margin-left: 8px; font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; }
.take .vpick { margin-top: 44px; }
.mine-panel .vpick { margin-top: 16px; }
.fonts-note { margin: 18px 0 0; max-width: 46em; font-size: 12.5px; color: var(--ink-2); text-wrap: pretty; }
.font-card[data-busy] { cursor: progress; }
.font-card canvas { display: block; width: 100%; height: auto; margin: 2px 0 0; }
.font-card .v { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.font-card .v .arr { width: 26px; height: 10px; flex: none; }
/* 二级页：调一个自己的 */
.mine-page { padding-top: clamp(100px, 14vh, 150px); }
.mine-page .mine { margin-top: 0; }
.mine-page .mine-lede { max-width: 40em; }
.back { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 34px; font-size: 12.5px; letter-spacing: .2em; color: var(--ink); text-decoration: none; transition: transform .25s steps(3); }
.back:hover { transform: translateX(-4px); }
.back .arr { width: 26px; height: 10px; transform: scaleX(-1); }
.foot-sub { padding-top: 110px; }

/* ---------- 页脚 ---------- */
.foot { padding: 150px var(--gut) 60px; max-width: 1600px; margin: 0 auto; text-align: center; }
.grade { width: min(520px, 90vw); height: auto; margin: 0 auto 20px; }
.foot-doodle { width: min(280px, 70vw); height: auto; margin: 0 auto; }
.foot-line { margin: 18px 0 22px; font-size: 15px; letter-spacing: .4em; }
.again { margin-bottom: 70px; }
.foot-meta { font-size: 11.5px; color: var(--ink-2); letter-spacing: .06em; line-height: 2; }
.foot-meta p { margin: 0; }

/* ---------- 入场：一顿一顿的 ---------- */
.rv { opacity: 0; transform: translateY(14px) rotate(-.4deg); transition: opacity .7s steps(5), transform .7s steps(5); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 陪读小人 ---------- */
.sheet-wrap, .desk, .board-wrap, .takes, .take-grid, .take-list { position: relative; }
.vig { position: absolute; pointer-events: none; z-index: 3; }
.v-sit { width: 150px; height: 170px; }
.v-sign { width: 200px; height: 230px; left: 46%; top: -226px; }
.v-point { width: 130px; height: 160px; }
.v-lift { width: 180px; height: 270px; right: 0; top: -262px; }
.v-wave { width: 150px; height: 190px; right: 0; top: -186px; }
.take-list .v-wave { right: 0; top: -186px; }

/* ---------- 换值日生的过场 ---------- */
.swap { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0; transition: opacity .35s steps(4); cursor: pointer; }
.swap.on { opacity: 1; }
.swap[hidden] { display: none; }
.swap canvas { width: min(720px, 92vw); height: auto; }
.swap-name { margin: 0; font-size: 12.5px; letter-spacing: .3em; }

/* ---------- 那支笔 ---------- */
.pen { position: absolute; left: 0; top: 0; z-index: 50; pointer-events: none; width: 40px; height: 150px; margin: -140px 0 0 -20px; transform-origin: 20px 140px; opacity: 0; transition: opacity .25s steps(3); will-change: transform; }
.pen.on { opacity: 1; }
.pen svg { overflow: visible; display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; margin-left: auto; }
  .brand { margin-right: 0; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 6px var(--gut) 18px; box-shadow: 0 1px 0 var(--line); }
  .nav { counter-reset: lesson; }
  .nav.open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 18px; align-items: baseline; }
  .nav.open a::before { counter-increment: lesson; content: "第" counter(lesson) "节"; font-size: 11px; font-weight: 500; letter-spacing: .2em; min-width: 3.6em; }
  .nav.open::before { content: "今日课程表"; font-size: 11px; font-weight: 500; letter-spacing: .3em; padding: 8px 0 4px; }
  .roll-head { grid-template-columns: 170px minmax(0, 1fr); }
  .roll-head span:last-child { display: none; }
  .wrow { grid-template-columns: 170px minmax(0, 1fr); }
  .takes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .take-card:nth-child(3) { border-left: 0; padding-left: 0; }
  .take-card:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .writers-grid { grid-template-columns: minmax(0, 1fr); }
  .writers-head { position: static; }
  .take-grid { grid-template-columns: minmax(0, 1fr); }
  .take-list { grid-template-columns: minmax(0, 1fr); }
  .take-list .take-row { border-bottom: 1px solid var(--line); }
  .alike { grid-template-columns: minmax(0, 1fr); }
  .sheet-wrap { justify-self: stretch; max-width: none; }
  .mine-body, .make, .make-out { grid-template-columns: minmax(0, 1fr); }
  .make-stage { position: static; }
  .v-sign { left: auto; right: 4%; }
}
@media (max-width: 760px) {
  /* 手机上，界面的中文用手机自带的黑体（苹方、鸿蒙黑体、MiSans……），不下载网页字体：
     两个字重 380 KB，服务器带宽小的时候要等好几秒，还会先显示一种字、过一会儿再换一种。手写的字都是现场画的，不受影响 */
  :root { --sec: 116px; --zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", sans-serif; --sans: "Jost", var(--zh); }
  .bar { height: 56px; gap: 12px; }
  .duty-txt small { display: none; }
  .duty-txt b { display: none; }
  .duty-menu { position: fixed; top: 66px; left: 0; right: 0; width: auto; padding: 8px var(--gut) 14px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .duty-menu-t { margin: 6px 0 2px; }
  .duty-item { padding: 8px 0; }
  .hero-meta span:first-child { visibility: hidden; }
  .hero-copy { bottom: calc(10vh + 40px); }
  .wrow { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .mine-stage { top: 56px; z-index: 4; background: var(--paper) var(--grain); padding: 6px 0 8px; box-shadow: 0 1px 0 var(--line); transition: top .45s steps(4); }
  html.bar-hidden .mine-stage { top: 0; }
  .mine-try { margin-top: 2px; padding-top: 6px; }
  .mine-try input { font-size: 14px; padding: 3px 2px 7px; }
  .mine-try .btn { padding: 7px 14px 8px; }
  .knob { grid-template-columns: 4.8em minmax(0, 1fr) 4.8em; gap: 8px; font-size: 12px; letter-spacing: .02em; }
  .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .knob.dots { grid-template-columns: 4.8em minmax(0, 1fr); }
  .ex-list { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .stat { display: flex; align-items: flex-end; gap: 12px; }
  .stat canvas { height: 54px; }
  .stat p { margin: 0 0 9px; font-size: 13.5px; }
  .specimen { margin-top: 40px; }
  .takes { grid-template-columns: 1fr; }
  .take-card, .take-card:nth-child(3) { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .take-card:first-child { border-top: 0; }
  .takes.fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .takes.fonts .take-card { padding: 18px 0 22px; }
  .takes.fonts .take-card:nth-child(2) { border-top: 0; }
  .back { margin-bottom: 22px; }
  .toolbar { gap: 10px 16px; padding: 12px 14px; }
  .toolbar .tool:first-child { width: 100%; }
  .tool-label { font-size: 11px; letter-spacing: .16em; }
  .seg button { padding: 4px 7px; }
  .slide input[type=range] { width: 84px; }
  .hero { height: 600px; min-height: 0; }
  .hero-copy { bottom: auto; top: 392px; }
  .roll-head { display: none; }
  .v-sit { display: none; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; padding-left: 8px; padding-right: 8px; }
  .v-sit { width: 110px; height: 125px; }
  .v-sign { width: 140px; height: 161px; top: -158px; right: 2%; }
  .v-point, .v-lift { display: none; }
  .v-wave { display: none; }
  .desk { margin-top: 176px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* 闭引号后面紧跟标点：闭引号只占半格 */
.pq { letter-spacing: -.5em; }
@media (max-width: 760px) { .vpick-hint { flex-basis: 100%; margin-left: 0; } .take .vpick { margin-top: 32px; } }
/* 手机上用的是系统字体：它们自带标点挤压，浏览器自己会把「）。」收紧，再手动收半格就叠在一起了 */
@media (max-width: 760px) { .pq { letter-spacing: 0; } }
