.share-entry{font:inherit;font-size:14px;min-height:44px;padding:8px 12px;color:var(--navy);background:transparent;border:1px solid var(--line);border-radius:4px;cursor:pointer;white-space:nowrap}
.share-entry:focus-visible,.share-sheet button:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.share-sheet{box-sizing:border-box;width:min(460px,calc(100% - 28px));max-height:88vh;max-height:88dvh;overflow:auto;border:1px solid #cfc6ad;border-radius:12px;background:#fbf8ef;color:#1b2a4a;padding:30px 24px 20px;box-shadow:0 24px 80px #0e183055}
.share-sheet::backdrop{background:#0e1830a6}.share-open{overflow:hidden}
.share-close{position:absolute;right:10px;top:8px;width:44px;height:44px;border:0;background:transparent;font-size:30px;color:#1b2a4a;cursor:pointer}
.share-kicker{font-size:11px;letter-spacing:.13em;color:#846b3d}.share-sheet h2{font-family:var(--serif);font-size:25px;margin:14px 0 10px}.share-sheet p{font-size:14px;line-height:1.8;margin:10px 0}.share-qr{display:block;max-width:100%;height:auto;margin:18px auto 8px;background:white;border:1px solid #e6dfcf;border-radius:6px}.share-caption{text-align:center;color:#655d4e}.share-url-label{font-size:12px;display:block;margin-top:16px}.share-sheet input{box-sizing:border-box;width:100%;font-size:16px;padding:12px 10px;border:1px solid #cfc6ad;border-radius:4px;background:#fffdf7;color:#1b2a4a}.share-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}.share-actions>*{flex:1;min-height:44px;white-space:nowrap}#share-status{min-height:24px;color:#395f46}
.reader-page{padding:0!important}.reader-bar{background:#fbf8ef;border-bottom:1px solid #cfc6ad;padding:12px 16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.reader-bar h1{flex:1;min-width:150px;font-size:16px;margin:0;line-height:1.6}.reader-bar a{color:#1b2a4a;min-height:44px;display:inline-flex;align-items:center}.reader-tip{padding:10px 16px;font-size:13px;line-height:1.8;background:#ebe3cc;margin:0}.reader-content{width:min(900px,100%);margin:auto}.reader-content iframe{display:block;width:100%;height:calc(100vh - 170px);height:calc(100dvh - 170px);min-height:360px;border:0;background:#f4eedd}.reader-content video{display:block;max-width:100%;max-height:75vh;margin:20px auto}.reader-error{padding:32px 20px;text-align:center}.library-note{padding:14px 18px;background:#ebe3cc;border-left:3px solid #d9482b;font-size:14px;line-height:1.8;margin-top:24px}
@media(max-width:960px){.topbar nav{gap:8px}.topbar nav .share-entry{display:block}.topbar .wrap{gap:10px}.topbar .brand{flex-shrink:0}.hero .wrap{padding-top:32px;gap:24px}.hero .mascot{width:150px}.field input,.field select,.field textarea{font-size:16px}}
@media(max-width:640px){.sticky-bar{padding-bottom:env(safe-area-inset-bottom,0px);background:var(--red)}body{padding-bottom:calc(54px + env(safe-area-inset-bottom,0px))}.editing-field .sticky-bar{display:none}.share-sheet{padding:28px 18px 16px}.topbar nav a.cta{padding:8px 10px;font-size:13px}.brand .name{font-size:23px}.share-entry{padding:8px;font-size:13px}.reader-bar h1{order:3;flex-basis:100%}}

.subject-filters{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 12px}.subject-filters [aria-pressed="true"]{background:#1b2a4a;color:#fff}.subject-filters button{min-height:44px}#filter-status{color:#6a6558;font-size:13px}

/* 微信内置浏览器不执行 download 下载，按钮点了没反应会让家长以为页面坏了。
   所以在微信里只留「在线阅读」，并说清楚打印要在电脑上做。 */
.wx-note{display:none;margin:10px 0 0;font-size:12.5px;line-height:1.7;color:#6a6558}
.in-wechat .wx-note{display:block}
.in-wechat .material .actions .dl{display:none}
.in-wechat .material .actions{display:flex}
.in-wechat .material .actions .read{flex:1;text-align:center}
.wx-note{grid-column:1/-1}
.in-wechat .material.video .vwrap>.wx-note{grid-column:1/-1}
.in-wechat .material.video .actions{display:none}
.tip-wx{display:none}
.in-wechat .tip-wx{display:inline}
.in-wechat .tip-web{display:none}
