/* 道枢学社 · 手机版（App 式布局）与读者功能：书房、阅读打卡、消息、网页 App */

/* ---------- 身份标 ---------- */
.idb { display: inline-flex; align-items: center; padding: 0 6px; border: 1px solid var(--chip); border-radius: 2px; font-family: var(--sans); font-size: 12px; line-height: 1.6; color: var(--ink2); white-space: nowrap; }
.idb-red { background: var(--red); border-color: var(--red); color: #F8F4EA; }
.idb-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.idb-ink-line { border-color: var(--ink); color: var(--ink); }
.idb-purple { border-color: var(--shen-b); color: var(--shen); }
.idb-jade { border-color: #93B29E; color: #3E6B4F; }
.idb-grey { border-color: var(--chip); color: var(--ink2); }
.cmt-head .idb, .composer-who .idb, .acct-badges .idb { margin-left: 2px; }

/* ---------- shared bits ---------- */
.only-phone { display: none !important; }
.plus { color: var(--red); font-weight: 600; }
.mbar { display: block; height: 6px; background: var(--rule3); overflow: hidden; }
.mbar > span { display: block; height: 100%; background: var(--red); }
.mbar-thin { height: 4px; }
.umenu-btn { position: relative; }
.umenu-dot { position: absolute; top: 8px; left: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); }
.umenu-n { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.fav-btn.is-on { background: var(--red); border-color: var(--red); color: #F8F4EA; box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px rgba(248, 244, 234, .5); }
.tabbar, .ptop, .atop, .abar { display: none; }
.check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-family: var(--sans); font-size: 14.5px; color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }

/* ---------- sheets (bottom on phones, centred on computers) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet-mask { position: absolute; inset: 0; background: rgba(19, 17, 14, .5); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: min(480px, 100%); max-height: min(86vh, 760px); overflow-y: auto; padding: 0 22px 22px; background: var(--silk); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); transform: translateY(14px); opacity: 0; transition: transform .2s, opacity .2s; font-family: var(--serif); }
.sheet-wrap.is-open .sheet-mask { opacity: 1; }
.sheet-wrap.is-open .sheet { transform: none; opacity: 1; }
.sheet-handle { display: none; }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -22px; padding: 14px 8px 8px 22px; background: var(--silk); }
.sheet-title { margin: 0; font-family: var(--kai); font-size: 25px; font-weight: 400; letter-spacing: .06em; line-height: 1.3; }
.sheet-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink2); cursor: pointer; }
html.sheet-on { overflow: hidden; }

/* ---------- 读书卡 (card.js) ---------- */
.rc { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 2px; }
.rc-stage { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 220px; }
.rc-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 58vh; border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(35, 31, 27, .14); background: #ECE3D1; transition: opacity .15s; }
.rc-stage.is-busy .rc-img { opacity: .45; }
.rc-stage.is-tall { display: block; max-height: 58vh; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); }
.rc-stage.is-tall .rc-img { width: 100%; max-height: none; border: 0; box-shadow: none; }
.rc-wait, .rc-err { margin: 0; font-family: var(--sans); font-size: 14px; color: var(--ink3); text-align: center; }
.rc-err { color: var(--red); }
.rc-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.rc-seg button { min-width: 88px; min-height: 40px; padding: 0 18px; border: 0; background: none; font-family: var(--serif); font-size: 15px; letter-spacing: .14em; color: var(--ink2); cursor: pointer; }
.rc-seg button + button { border-left: 1px solid var(--rule); }
.rc-seg button.is-on { background: var(--ink); color: var(--paper); }
.rc-seg button:focus-visible { outline-offset: -4px; }
.rc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.rc-btns .btn { flex: 1 1 140px; max-width: 220px; }
.rc-btns .btn[aria-disabled="true"], .rc-btns .btn:disabled { opacity: .5; pointer-events: none; }
.rc-tip { margin: 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink3); text-align: center; }
@media (max-width: 720px) { .rc-img { max-height: 52vh; } .rc-stage.is-tall { max-height: 52vh; } .rc { gap: 12px; } }

/* guest sheet */
.gs-why { margin: 0; font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; color: var(--red-d); }
.gs-lead { margin: 6px 0 0; font-size: 15px; line-height: 1.85; color: #3B362F; }
.gs-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule3); }
.gs-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--rule3); position: relative; }
.gs-list li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 9px; height: 9px; border: 1.5px solid var(--red); }
.gs-list strong { font-size: 15px; }
.gs-list span { font-family: var(--sans); font-size: 12.5px; color: var(--ink3); }
.gs-btns { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.gs-skip { min-height: 40px; border: 0; background: none; font-family: var(--sans); font-size: 13.5px; color: var(--ink3); cursor: pointer; }

/* note sheet */
.nt-quote { padding: 12px 14px; background: var(--capsule); }
.nt-quote p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.8; color: #2E2A25; }
.nt-quote .nt-label { margin: 0; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--red-d); }
.nt-field { display: block; margin-top: 14px; }
.nt-field span { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink2); }
.nt-field textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--chip); border-radius: 0; background: var(--field); font: inherit; font-size: 16px; line-height: 1.8; color: var(--ink); resize: vertical; }
.nt-private { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12.5px; color: var(--ink3); }
.nt-btns { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* table of contents + font sheets */
.tc-read { margin: 0 0 6px; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.tc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule3); }
.tc-list a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 4px; border-bottom: 1px solid var(--rule3); font-size: 16px; color: var(--ink); text-decoration: none; }
.tc-list a.is-on { color: var(--red); font-weight: 600; box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }
.tc-n { flex: none; min-width: 28px; font-family: var(--kai); font-size: 18px; color: var(--red); }
.ft-sizes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); margin: 6px 0 14px; }
.ft-sizes button { min-height: 48px; border: 0; background: transparent; font-family: var(--serif); font-size: 16px; cursor: pointer; }
.ft-sizes button + button { border-left: 1px solid var(--ink); }
.ft-sizes button.is-on { background: var(--ink); color: var(--paper); }
.ft-wake { margin: 0 0 14px; }

/* ---------- reading: highlights, bookmarks, selection bar ---------- */
.prose mark.hl { background: rgba(163, 58, 44, .14); color: inherit; padding: 0 1px; border-radius: 1px; box-shadow: inset 0 -2px 0 rgba(163, 58, 44, .6); cursor: pointer; }
.prose mark.hl.has-note { box-shadow: inset 0 -2px 0 rgba(163, 58, 44, .85); background: rgba(163, 58, 44, .2); }
.prose .hl-crowd { text-decoration: underline dotted #8F887C; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.prose .hl-n { display: inline-block; margin: 0 4px; padding: 0 5px; border: 1px solid var(--rule2); background: var(--silk); font-family: var(--sans); font-size: 11px; line-height: 1.6; color: var(--ink3); vertical-align: 2px; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.prose [data-p].has-bm { position: relative; }
.bm-ribbon { position: absolute; left: -22px; top: .55em; width: 14px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.bm-ribbon svg { width: 12px; height: 17px; fill: var(--red); }
.prose .is-flash { animation: ds-flash 1.8s ease-out; }
@keyframes ds-flash { 0% { background: rgba(217, 185, 110, .55); } 100% { background: transparent; } }
.selbar { position: absolute; z-index: 70; display: flex; background: var(--ink); border-radius: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.selbar button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border: 0; background: none; color: var(--paper); font-family: var(--sans); font-size: 14px; cursor: pointer; }
.selbar button + button { box-shadow: -1px 0 0 rgba(242, 236, 224, .22); }
.selbar-dot { width: 10px; height: 10px; background: #C8604D; }
.resume { position: fixed; left: 50%; bottom: 28px; z-index: 60; max-width: calc(100vw - 32px); padding: 10px 16px; border: 0; border-radius: 22px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); transform: translate(-50%, 16px); opacity: 0; transition: opacity .25s, transform .25s; cursor: pointer; }
.resume.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- install bar and sheet ---------- */
.insbar { position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 12px; background: var(--silk); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 10px 28px rgba(35, 31, 27, .22); transform: translateY(16px); opacity: 0; transition: transform .25s, opacity .25s; font-family: var(--serif); }
.insbar.is-on { transform: none; opacity: 1; }
.insbar img { flex: none; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--rule2); }
.insbar-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.insbar-main strong { font-size: 15px; line-height: 1.4; }
.insbar-main span { font-family: var(--sans); font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insbar-add { flex: none; height: 38px; padding: 0 14px; border: 0; background: var(--red); color: #F8F4EA; font-family: var(--kai); font-size: 18px; letter-spacing: .12em; box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px rgba(248, 244, 234, .5); cursor: pointer; }
.insbar-x { flex: none; width: 36px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink3); cursor: pointer; }
body:not(.has-tabbar) .insbar { bottom: calc(74px + env(safe-area-inset-bottom)); }
.ins-head { display: flex; gap: 14px; align-items: flex-start; }
.ins-head img { flex: none; border-radius: 14px; box-shadow: 0 0 0 1px var(--rule2), 0 4px 12px rgba(35, 31, 27, .14); }
.ins-head p { margin: 0; font-size: 14.5px; line-height: 1.8; color: #3B362F; }
.ins-steps { margin: 14px 0 0; padding: 0; list-style: none; }
.ins-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule3); font-size: 15px; }
.ins-steps li > span:nth-child(2) { flex: 1 1 auto; }
.ins-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--red); color: var(--red); font-size: 13px; font-weight: 600; }
.ins-blue { color: #3B6FD8; font-family: var(--sans); font-size: 14px; }
.ins-wx, .app-wx { margin: 14px 0 0; padding: 10px 12px; background: var(--capsule); font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--ink2); }
.ins-p { margin: 14px 0 0; font-size: 15px; line-height: 1.8; }
.ins-btns { margin-top: 16px; }

/* ---------- 我的 · 书房 · 阅读记录 · 消息 (computers get a centred column) ---------- */
.mpage { max-width: 680px; padding-top: 28px; padding-bottom: 64px; }
.mpage-title { margin: 0 0 18px; font-family: var(--kai); font-size: 36px; font-weight: 400; letter-spacing: .08em; }
.mpage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mpage-head .mpage-title { margin: 0; }
.mprof { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.mprof .ava-lg { width: 60px; height: 60px; font-size: 32px; }
.mprof-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mprof-name { font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.mprof-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mprof-day { font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.mprof-go { font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.mlevel { margin-top: 16px; padding: 16px 18px; }
.mlevel-top, .mlevel-foot { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-family: var(--sans); font-size: 12.5px; color: var(--ink3); }
.mlevel-top a { color: var(--red-d); text-decoration: none; }
.mlevel-row { margin: 6px 0 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mlevel-name { font-family: var(--kai); font-size: 32px; line-height: 1.2; color: var(--xing); }
.mlevel-desc { font-size: 14px; color: var(--ink2); }
.mlevel .mbar { margin-top: 12px; }
.mlevel-foot { margin-top: 8px; color: var(--ink2); }
.mlevel-foot b { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.mtiles { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mtile { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px; background: var(--silk); border: 1px solid var(--rule2); color: var(--ink); text-decoration: none; }
.mtile strong { display: block; font-size: 16px; }
.mtile span span { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.mtile-seal, .mtile .mtile-seal { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--red); color: var(--red); font-family: var(--kai); font-size: 24px; line-height: 1; }
.mlist { margin-top: 12px; background: var(--silk); border: 1px solid var(--rule2); }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 16px; border: 0; border-bottom: 1px solid var(--rule3); background: none; font: inherit; font-size: 15.5px; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.mlist > :last-child { border-bottom: 0; }
.mrow:hover { background: var(--tint); color: var(--ink); }
.mrow.is-off { opacity: .55; cursor: default; }
.mrow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mrow-sub { font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.mrow-n { min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-family: var(--sans); font-size: 12px; line-height: 22px; text-align: center; }
.mrow-go { color: var(--ink4); }
.mlist-sm .mrow { min-height: 44px; font-size: 14.5px; }
.mout-wrap { margin: 18px 0 0; text-align: center; }
.mout { min-height: 44px; padding: 0 20px; border: 0; background: none; font-family: var(--sans); font-size: 14px; color: var(--ink3); cursor: pointer; }
.mguest { padding: 20px; }
.mg-eyebrow { margin: 0; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--red-d); }
.mg-title { margin: 4px 0 0; font-family: var(--kai); font-size: 28px; font-weight: 400; letter-spacing: .06em; }
.mg-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.85; color: #3B362F; }
.mg-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule3); }
.mg-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule3); }
.mg-list strong { display: block; font-size: 15px; }
.mg-list span span { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.mg-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--capsule); color: var(--red-d); }
.mg-btns { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule2); font-family: var(--sans); }
.mtab { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px; font-size: 15px; color: var(--ink3); text-decoration: none; }
.mtab.is-on { color: var(--ink); font-weight: 500; }
.mtab.is-on span { color: var(--red); }
.mtab.is-on::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 36px; margin-left: -18px; height: 2px; background: var(--red); }
.mnote { margin: 12px 0 0; padding: 8px 12px; display: flex; align-items: center; gap: 8px; background: var(--capsule); font-family: var(--sans); font-size: 12.5px; color: var(--ink2); }
.mnote .ic { color: var(--red-d); }
.mempty { margin: 24px 0; font-size: 15px; line-height: 1.9; color: var(--ink3); list-style: none; }
.slist { margin: 4px 0 0; padding: 0; list-style: none; }
.sitem { position: relative; border-bottom: 1px solid var(--rule3); }
.sitem-link { display: block; padding: 13px 40px 13px 0; color: var(--ink); text-decoration: none; }
.sitem-meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--sans); font-size: 11.5px; color: var(--ink4); }
.sitem-cat { color: var(--ink3); }
.sitem-cat.tone-shen { color: var(--shen); } .sitem-cat.tone-xing { color: var(--xing); }
.sitem-title { display: block; margin-top: 3px; font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.sitem-prog { margin-top: 7px; display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 11.5px; color: var(--ink2); }
.sitem-prog .mbar { flex: 1 1 auto; }
.sitem-done { margin-top: 6px; display: flex; align-items: center; gap: 5px; font-family: var(--sans); font-size: 11.5px; color: var(--xing); }
.sitem-unread { display: block; margin-top: 6px; font-family: var(--sans); font-size: 11.5px; color: var(--ink4); }
.sitem-snip { display: flex; gap: 6px; margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--ink2); }
.sitem-snip .ic { width: 14px; height: 14px; margin-top: 4px; color: var(--red); }
.sitem-del { position: absolute; right: -8px; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; background: none; color: var(--ink4); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sitem-del .ic { width: 16px; height: 16px; }
.mfilter { display: flex; gap: 8px; margin: 12px 0 0; font-family: var(--sans); }
.mchip { padding: 4px 12px; border: 1px solid var(--rule); font-size: 13px; color: var(--ink2); text-decoration: none; }
.mchip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 0 6px; border-bottom: 1px solid var(--rule); }
.hgroup-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.hgroup-head a { color: var(--ink); text-decoration: none; }
.hgroup-head span { flex: none; font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.hlist { margin: 0; padding: 0; list-style: none; }
.hitem { padding: 12px 0; border-bottom: 1px solid var(--rule3); }
.hitem-quote { margin: 0; padding-left: 12px; border-left: 3px solid rgba(163, 58, 44, .55); font-size: 15.5px; line-height: 1.85; color: #2E2A25; }
.hitem.is-changed .hitem-quote { border-left-color: var(--rule); color: var(--ink3); }
.hitem-note { margin: 7px 0 0 15px; display: flex; gap: 6px; font-size: 14px; line-height: 1.75; color: var(--ink2); }
.hitem-note .ic { flex: none; width: 14px; height: 14px; margin-top: 5px; color: var(--red); }
.hitem-changed { margin: 7px 0 0 15px; display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.hitem-changed span { padding: 0 6px; border: 1px solid var(--rule); background: var(--silk); color: var(--red-d); }
.hitem-meta { margin: 6px 0 0 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--sans); font-size: 11.5px; color: var(--ink4); }
.hitem-acts { display: flex; align-items: center; gap: 14px; }
.hitem-acts a { color: var(--red-d); text-decoration: none; }
.hitem-del { min-height: 32px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink4); cursor: pointer; }

/* 阅读记录 */
.rtoday { padding: 16px 18px 14px; }
.rtoday-top { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-family: var(--sans); font-size: 12.5px; color: var(--ink3); }
.rtoday-top b { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.rtoday-mid { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rtoday-n { margin: 0; font-size: 16px; }
.rtoday-n b { font-size: 40px; font-weight: 600; line-height: 1.15; }
.rtoday-sub { margin: 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink2); }
.rstamp { flex: none; margin-right: 6px; padding: 5px 12px 6px; border: 2px solid var(--red); color: var(--red); font-family: var(--kai); font-size: 22px; line-height: 1.1; letter-spacing: .12em; transform: rotate(-7deg); box-shadow: inset 0 0 0 2px var(--silk), inset 0 0 0 3px rgba(163, 58, 44, .55); white-space: nowrap; }
.rstamp.is-off { transform: none; border-color: var(--rule); color: var(--ink3); box-shadow: none; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; padding: 4px 10px; }
.rtoday-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule3); }
.rtoday-foot p { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--sans); font-size: 12px; color: var(--ink2); }
.rstats { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--silk); border: 1px solid var(--rule2); }
.rstats div { padding: 10px 0; text-align: center; }
.rstats div + div { border-left: 1px solid var(--rule3); }
.rstats b { display: block; font-size: 21px; font-weight: 600; }
.rstats small { font-size: 13px; font-weight: 400; }
.rstats span { font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.rweek { margin-top: 10px; padding: 12px 16px; }
.rweek-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rweek-head h2 { margin: 0; font-family: var(--kai); font-size: 20px; font-weight: 400; letter-spacing: .06em; }
.rweek-head h2 span { margin-left: 6px; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink3); }
.rweek-key { display: flex; align-items: center; gap: 5px; font-family: var(--sans); font-size: 11px; color: var(--red-d); }
.rweek-key i { width: 16px; border-top: 1px dashed var(--red); }
.rweek-chart { position: relative; margin-top: 8px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rweek-plot { position: absolute; z-index: 1; left: 0; right: 0; bottom: 24px; height: 92px; pointer-events: none; }
.rweek-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(163, 58, 44, .6); }
.rbar { display: flex; flex-direction: column; align-items: center; }
.rbar-col { box-sizing: border-box; height: 112px; padding-top: 20px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.rbar-n { position: absolute; z-index: 2; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); padding: 0 3px; background: var(--silk); font-family: var(--sans); font-size: 11px; line-height: 15px; color: var(--ink3); white-space: nowrap; }
.rbar-fill { position: relative; width: 22px; background: var(--rule); }
.rbar.is-ok .rbar-fill { background: var(--red); }
.rbar.is-ok .rbar-n { color: var(--ink2); }
.rbar.is-today .rbar-fill { box-shadow: 0 0 0 2px var(--silk), 0 0 0 3px var(--ink); }
.rbar-d { margin-top: 4px; height: 20px; line-height: 20px; font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.rbar.is-today .rbar-d { color: var(--ink); font-weight: 500; }
.rcal { margin-top: 10px; padding: 10px 12px 12px; }
.rcal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rcal-head h2 { margin: 0; font-size: 15.5px; font-weight: 600; }
.rcal-head p { margin: 0; display: flex; gap: 12px; font-family: var(--sans); font-size: 11.5px; color: var(--ink3); }
.rcal-head p span { display: flex; align-items: center; gap: 5px; }
.rcal-key { display: inline-block; width: 11px; height: 11px; }
.rcal-key.is-ok { background: var(--red); }
.rcal-key.is-today { width: 9px; height: 9px; border: 1.5px solid var(--ink); }
.rcal-grid { margin-top: 4px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; row-gap: 4px; }
.rcal-wk { font-family: var(--sans); font-size: 11.5px; line-height: 24px; color: var(--ink3); }
.rcal-d { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink2); }
.rcal-d.is-ok { background: var(--red); color: #F8F4EA; font-weight: 600; }
.rcal-d.is-today { box-shadow: 0 0 0 2px var(--silk), 0 0 0 3.5px var(--ink); }
.rcal-d.is-future { color: var(--chip); }
.rrules { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule3); }
.rrules li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule3); }
.rrules strong { display: block; font-size: 15px; line-height: 1.5; }
.rrules li span span { display: block; margin-top: 2px; font-family: var(--sans); font-size: 12.5px; line-height: 1.6; color: var(--ink3); }
.rr-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--capsule); color: var(--red-d); }
.rr-off { color: var(--ink4); }
.rrules-note { margin: 12px 0 16px; font-family: var(--sans); font-size: 12.5px; line-height: 1.7; color: var(--ink3); }
.ptop-text { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 12px; border: 0; background: none; font-family: var(--sans); font-size: 14px; color: var(--ink2); cursor: pointer; }
.ptop-text .ic { width: 17px; height: 17px; }

/* 消息 */
.npush { padding: 16px 18px; }
.npush-head { display: flex; gap: 12px; align-items: flex-start; }
.npush-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.npush-head p { margin: 2px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--ink2); }
.npush-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--capsule); color: var(--red-d); }
.npush-acts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.npush-acts [hidden] { display: none !important; }
.npush-ios { margin: 10px 0 0; padding: 10px 12px; background: var(--capsule); font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--ink2); }
.nprefs { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule3); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.nprefs-t { grid-column: 1 / -1; margin: 0 0 2px; font-family: var(--sans); font-size: 12.5px; color: var(--ink3); }
.nlist { margin: 14px 0 0; padding: 0; list-style: none; background: var(--silk); border: 1px solid var(--rule2); }
.nitem a { display: flex; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--rule3); color: var(--ink); text-decoration: none; }
.nitem:last-child a { border-bottom: 0; }
.nitem.is-unread a { background: #FBF1E4; }
.nitem-seal { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1.5px solid var(--red); color: var(--red); font-family: var(--kai); font-size: 19px; line-height: 1; }
.nitem-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nitem-title { font-size: 15.5px; font-weight: 600; }
.nitem-body { font-size: 14px; line-height: 1.7; color: var(--ink2); overflow-wrap: anywhere; }
.nitem-time { font-family: var(--sans); font-size: 11.5px; color: var(--ink4); }

/* /app/ */
.apppage { max-width: 680px; padding-top: 24px; padding-bottom: 64px; }
.app-hero { padding: 24px 20px 20px; text-align: center; }
.app-icon { border-radius: 18px; box-shadow: 0 0 0 1px var(--rule2), 0 6px 16px rgba(35, 31, 27, .16); }
.app-title { margin: 14px 0 0; font-family: var(--kai); font-size: 30px; font-weight: 400; line-height: 1.35; letter-spacing: .06em; }
.app-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.85; color: #3B362F; }
.app-done { margin: 12px 0 0; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13.5px; color: var(--xing); }
.app-sec { margin-top: 12px; padding: 14px 16px; }
.app-eyebrow { margin: 0; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--red-d); }
.app-h2 { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.app-steps { margin: 8px 0 0; padding: 0; list-style: none; }
.app-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule3); }
.app-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--red); color: var(--red); font-size: 13px; font-weight: 600; }
.app-t { flex: 1 1 auto; font-size: 15px; line-height: 1.6; }
.app-ico { flex: none; display: inline-flex; color: var(--ink); }
.app-blue, .app-add { color: #2F62C9; }
.app-add { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.app-p { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.75; color: var(--ink2); }
.app-small { margin: 10px 0 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink3); }
.app-qr { width: 200px; margin: 6px auto 0; }
.app-qr .qr { display: block; width: 100%; height: auto; border: 1px solid var(--rule2); }
.app-url { margin: 8px 0 0; text-align: center; font-family: var(--sans); font-size: 14px; letter-spacing: .04em; }
.app-foot { margin: 18px 0 0; text-align: center; font-family: var(--sans); font-size: 13.5px; }
.app-foot a { color: var(--red-d); text-decoration: none; }
.apppage[data-device="ios"] .app-sec[data-os="ios"], .apppage[data-device="android"] .app-sec[data-os="android"] { border-color: var(--red); }

/* offline */
.offline { padding-top: 40px; padding-bottom: 64px; }
.offline-card { max-width: 560px; margin: 0 auto; padding: 28px 24px; text-align: center; }
.offline-card h1 { margin: 12px 0 0; font-family: var(--kai); font-size: 30px; font-weight: 400; }
.offline-card p { color: var(--ink2); }
.offline-list { margin: 0; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--rule3); }
.offline-list a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--rule3); font-size: 16px; color: var(--ink); text-decoration: none; }

/* ---------- home: 今日修学 · 继续阅读 ---------- */
.mem { padding-top: 26px; }
.mem-hi { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 16px; }
.mem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mem-today, .mem-cont { display: flex; flex-direction: column; padding: 16px 18px 14px; color: var(--ink); text-decoration: none; }
.mem-top { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: var(--ink3); }
.mem-more { color: var(--red-d); }
.mem-mid { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mem-n { display: block; font-size: 16px; }
.mem-n b { font-size: 42px; font-weight: 600; line-height: 1.15; }
.mem-sub { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink2); }
.mem-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule3); display: grid; grid-template-columns: 1fr 1fr; font-family: var(--sans); font-size: 12.5px; color: var(--ink2); }
.mem-foot b { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.mem-foot > span + span { padding-left: 14px; border-left: 1px solid var(--rule3); }
.mem-cat { margin: 8px 0 0; font-family: var(--sans); font-size: 11.5px; color: var(--ink3); }
.mem-title { margin: 3px 0 0; font-size: 17px; font-weight: 600; line-height: 1.5; }
.mem-sec { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink2); }
.mem-ribbon { width: 9px; height: 13px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.mem-go { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 14px; }
.mem-prog { flex: 1 1 auto; font-family: var(--sans); font-size: 11.5px; color: var(--ink3); }
.mem-prog span:last-child { display: block; margin-top: 5px; }

/* =====================================================================
   手机版（≤ 720px）: App 式布局 — compact top bar, fixed bottom tabs, sheets
   ===================================================================== */
@media (max-width: 720px) {
  .only-desk { display: none !important; }
  .only-phone { display: revert !important; }
  body.has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .eco, .ftr, .hdr-user, .hdr-cta, .mnav { display: none !important; }
  .hdr { box-shadow: none; }
  .hdr-in { min-height: 56px; }
  .hdr-tools .hdr-icon[href$="/search/"] { display: inline-flex !important; }
  .logo .logo-mark { width: 26px; height: 26px; }
  .logo-word-cn { width: 92px; height: auto; }

  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: calc(62px + env(safe-area-inset-bottom)); padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px); background: var(--silk); border-top: 1px solid var(--rule2); font-family: var(--sans); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink3); font-size: 11px; text-decoration: none; }
  .tab.is-on { color: var(--red); font-weight: 500; }
  .tab-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  /* 正中间的“课程”：红色圆印，高出底栏一截 */
  .tab-main { color: var(--red); font-weight: 500; }
  .tab-seal { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--silk), inset 0 0 0 2px rgba(248, 244, 234, .45), 0 8px 16px -8px rgba(163, 58, 44, .75); }
  .tab-main .tab-ic { width: 26px; height: 26px; stroke: #F8F4EA; stroke-width: 1.7; }
  .tab-main.is-on .tab-seal { background: var(--red-d); }
  .tab-dot { position: absolute; top: 4px; left: 50%; margin-left: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--silk); }

  /* pages one level down: back · title · action */
  .has-ptop .hdr { display: none; }
  .ptop { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; align-items: center; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 4px 0; background: var(--paper); border-bottom: 1px solid var(--rule2); }
  .ptop-back, .ptop-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); }
  .ptop-title { margin: 0; text-align: center; font-family: var(--kai); font-size: 23px; font-weight: 400; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ptop-right { justify-self: end; display: flex; align-items: center; }
  .page-me .ptop .ptop-title { text-align: left; padding-left: 12px; font-size: 26px; }
  .page-me .ptop { grid-template-columns: 0 minmax(0, 1fr) 84px; }

  /* sheets slide up from the bottom */
  .sheet-wrap { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; max-height: 88vh; border: 0; border-radius: 14px 14px 0 0; padding: 0 20px calc(26px + env(safe-area-inset-bottom)); transform: translateY(100%); opacity: 1; box-shadow: 0 -10px 30px rgba(0, 0, 0, .22); }
  .sheet-handle { display: block; width: 38px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--rule); }
  .sheet-head { margin: 0 -20px; padding: 6px 6px 6px 20px; }

  .mpage { padding-top: 12px; padding-bottom: 28px; }
  .mguest { margin-top: 4px; }
  .mem { padding-top: 6px; }
  .mem-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .page-home.is-member .hero { display: none; }
  .mem-hi { font-size: 15px; }

  /* ---------- home ---------- */
  .hero-hills, .scroll { display: none; }
  .hero { background: transparent; }
  .hero-in { padding: 2px 0 0; }
  .hero-text { margin: 0 16px; padding: 22px 20px 20px; gap: 14px; background: var(--silk); border: 1px solid var(--rule); box-shadow: inset 0 0 0 4px var(--silk), inset 0 0 0 5px var(--rule3); }
  .hero .wrap.hero-in { padding-left: 0; padding-right: 0; }
  .eyebrow { font-size: 12px; letter-spacing: .18em; }
  .hero-title { font-size: 31px; line-height: 1.45; }
  .hero-lead { font-size: 14px; line-height: 1.85; }
  .searchbox { padding: 0; gap: 0; outline: 0; background: var(--field); border-color: var(--chip); }
  .searchbox input { height: 46px; font-size: 14px; font-family: var(--sans); }
  .searchbox .btn { min-height: 46px; padding: 0 16px; font-size: 16px; letter-spacing: .1em; }
  .hero .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-bottom: 2px; scrollbar-width: none; font-size: 12px; }
  .hero .chips::-webkit-scrollbar { display: none; }
  .hero .chips > span { flex: none; }
  .hero .chip { flex: none; min-height: 32px; padding: 0 12px; font-size: 13px; background: var(--paper); border-color: var(--rule); }
  .sec { padding-top: 28px; }
  .sec-last { padding-bottom: 28px; }
  .sec-head { margin-bottom: 12px; align-items: baseline; }
  .sec-title-row .seal-n { display: none; }
  .sec-title { font-size: 23px; letter-spacing: .06em; }
  .sec-sub, .sec-aside { display: none; }
  .more-link { min-height: 36px; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink3); }
  .doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .door { flex-direction: row; align-items: center; gap: 12px; min-height: 72px; padding: 12px; outline-offset: -5px; }
  .door-seal { width: 38px; height: 38px; font-size: 24px; border-width: 1.5px; }
  .door-name { font-size: 16px; font-weight: 600; letter-spacing: 0; }
  .door-meta { display: block; font-size: 11.5px; }
  .door-text, .door-cta, .door-hills { display: none; }
  .door > .door-name { margin-right: auto; }
  .door { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; }
  .door-seal { grid-row: 1 / span 2; }
  .door-name { align-self: end; }
  .door-meta { align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .qa-grid { gap: 20px; }
  .q-list { flex-wrap: nowrap; overflow-x: auto; gap: 12px; margin-right: -16px; padding-right: 16px; border-top: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .q-list::-webkit-scrollbar { display: none; }
  .q-list li { flex: 0 0 250px; border: 1px solid var(--rule2); background: var(--silk); scroll-snap-align: start; }
  .q-list .row-link { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 108px; padding: 16px; }
  .q-list .row-title { font-size: 17px; font-weight: 600; }
  .q-list .dots { display: none; }
  .lx { padding: 20px; }
  .vols { gap: 12px; }
  .feat { gap: 12px; }
  .feat-media { display: none; }
  .band { margin-top: 28px; }

  /* ---------- library ---------- */
  .lib-hills { display: none; }
  .lib-mast { background: transparent; border-bottom: 0; }
  .lib-mast-in { padding-bottom: 10px; }
  .lib-mast .crumbs { display: none; }
  .lib-title { font-size: 24px; letter-spacing: .12em; }
  .lib-title-row { margin-top: 10px; gap: 10px; }
  .lib-title-row .seal-4 { display: none; }
  .lib-lead, .lib-mast .hot { display: none; }
  .lib-mast .searchbox { margin-top: 10px; }
  .lib-grid { gap: 14px; padding-top: 6px; padding-bottom: 28px; }
  .lib-side { order: 0; flex-basis: 100%; gap: 10px; }
  .lib-side .panel-title, .lib-side .ask-card, .vn-desc { display: none; }
  .vn-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .vn-list::-webkit-scrollbar { display: none; }
  .vn-list > li { flex: none; }
  .vn-all, .vn-vol-a { min-height: 34px; padding: 0 12px; border: 1px solid var(--rule); background: var(--silk); font-size: 13.5px; }
  .vn-all.is-on, .vn-vol-a.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
  .vn-sub { display: none; }
  .vn-sub.is-open { display: flex; gap: 6px; padding: 0; border: 0; }
  .vn-sub a { min-height: 34px; padding: 0 10px; border: 1px solid var(--rule2); white-space: nowrap; font-size: 13px; }
  .vn-cats .vn-list a { min-height: 34px; padding: 0 12px; gap: 6px; border: 1px solid var(--rule); background: var(--silk); font-size: 13.5px; white-space: nowrap; }
  .vn-cats .vn-list a.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
  .vn-cats .vn-list a.is-on em { color: rgba(242, 236, 224, .7); }
  .vn-list > li:has(.vn-sub.is-open) { display: flex; gap: 8px; }
  .lib-side .panel { padding: 0; background: none; border: 0; outline: 0; border-radius: 0; }
  .flt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 8px; }
  .flt-label { margin: 0; font-size: 12px; letter-spacing: .08em; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 0 16px 0 0; }
  .fchips::-webkit-scrollbar { display: none; }
  .fchip { flex: none; min-height: 32px; }
  .list-head { border-bottom-color: var(--rule); padding-bottom: 8px; }
  .art-row { gap: 12px; padding: 16px 0; }

  /* ---------- article: own top bar (back · section · share) and bottom bar ---------- */
  .page-article .hdr, .page-article .crumbs, .page-article .art-side { display: none !important; }
  .atop { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px; align-items: center; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 4px 0; background: var(--paper); border-bottom: 1px solid var(--rule2); }
  .atop-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); }
  .atop-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .atop-right { display: flex; justify-content: flex-end; }
  .atop-help { width: 40px; color: var(--ink3); }
  .atop-title { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .atop-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rule3); }
  .atop-bar span { display: block; width: 0; height: 2px; background: var(--red); transition: width .15s; }
  .abar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 62px; padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px); background: var(--silk); border-top: 1px solid var(--rule2); font-family: var(--sans); }
  .abar-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: none; color: #3B362F; font-size: 11px; text-decoration: none; cursor: pointer; }
  .abar-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .abar-btn b { font-weight: 400; }
  .abar-btn.is-on { color: var(--red); font-weight: 500; }
  .abar-btn.is-on svg { fill: currentColor; }
  .abar-aa { height: 23px; display: flex; align-items: flex-end; gap: 1px; font-family: var(--serif); font-weight: 600; line-height: 1; }
  .abar-aa span:first-child { font-size: 13px; } .abar-aa span:last-child { font-size: 19px; }
  .page-article { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .page-article .resume { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .art-grid { padding-top: 14px; padding-bottom: 32px; gap: 20px; }
  .art-main { flex-basis: 100%; }
  .art-h1 { font-size: 26px; }
  .prose { margin-top: 22px; font-size: 17px; line-height: 1.95; }
  .prose [data-p].has-bm { padding-left: 0; }
  .bm-ribbon { left: -15px; width: 12px; }
  .bm-ribbon svg { width: 10px; height: 15px; }
  .art-acts { flex-wrap: wrap; }
  .selbar button { padding: 0 12px; font-size: 13.5px; }
  .toast-pop { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .page-article .toast-pop { bottom: calc(86px + env(safe-area-inset-bottom)); }

  /* ---------- sub pages ---------- */
  .acct, .page-wrap { padding-top: 12px; }
  .mpage-title { display: none; }
  .nprefs { grid-template-columns: minmax(0, 1fr); }
  .apppage { padding-top: 12px; }
  .app-title { font-size: 28px; }
}

@media (max-width: 380px) {
  .selbar button { padding: 0 9px; }
  .mtiles { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- bar sizes (the CSP blocks style="" attributes; see pctCls in layout.js) ---------- */
.pw-0{width:0%}.pw-1{width:1%}.pw-2{width:2%}.pw-3{width:3%}.pw-4{width:4%}.pw-5{width:5%}.pw-6{width:6%}.pw-7{width:7%}.pw-8{width:8%}.pw-9{width:9%}.pw-10{width:10%}.pw-11{width:11%}.pw-12{width:12%}.pw-13{width:13%}.pw-14{width:14%}.pw-15{width:15%}.pw-16{width:16%}.pw-17{width:17%}.pw-18{width:18%}.pw-19{width:19%}.pw-20{width:20%}.pw-21{width:21%}.pw-22{width:22%}.pw-23{width:23%}.pw-24{width:24%}.pw-25{width:25%}.pw-26{width:26%}.pw-27{width:27%}.pw-28{width:28%}.pw-29{width:29%}.pw-30{width:30%}.pw-31{width:31%}.pw-32{width:32%}.pw-33{width:33%}.pw-34{width:34%}.pw-35{width:35%}.pw-36{width:36%}.pw-37{width:37%}.pw-38{width:38%}.pw-39{width:39%}.pw-40{width:40%}.pw-41{width:41%}.pw-42{width:42%}.pw-43{width:43%}.pw-44{width:44%}.pw-45{width:45%}.pw-46{width:46%}.pw-47{width:47%}.pw-48{width:48%}.pw-49{width:49%}.pw-50{width:50%}.pw-51{width:51%}.pw-52{width:52%}.pw-53{width:53%}.pw-54{width:54%}.pw-55{width:55%}.pw-56{width:56%}.pw-57{width:57%}.pw-58{width:58%}.pw-59{width:59%}.pw-60{width:60%}.pw-61{width:61%}.pw-62{width:62%}.pw-63{width:63%}.pw-64{width:64%}.pw-65{width:65%}.pw-66{width:66%}.pw-67{width:67%}.pw-68{width:68%}.pw-69{width:69%}.pw-70{width:70%}.pw-71{width:71%}.pw-72{width:72%}.pw-73{width:73%}.pw-74{width:74%}.pw-75{width:75%}.pw-76{width:76%}.pw-77{width:77%}.pw-78{width:78%}.pw-79{width:79%}.pw-80{width:80%}.pw-81{width:81%}.pw-82{width:82%}.pw-83{width:83%}.pw-84{width:84%}.pw-85{width:85%}.pw-86{width:86%}.pw-87{width:87%}.pw-88{width:88%}.pw-89{width:89%}.pw-90{width:90%}.pw-91{width:91%}.pw-92{width:92%}.pw-93{width:93%}.pw-94{width:94%}.pw-95{width:95%}.pw-96{width:96%}.pw-97{width:97%}.pw-98{width:98%}.pw-99{width:99%}.pw-100{width:100%}
.ph-0{height:0%}.ph-1{height:1%}.ph-2{height:2%}.ph-3{height:3%}.ph-4{height:4%}.ph-5{height:5%}.ph-6{height:6%}.ph-7{height:7%}.ph-8{height:8%}.ph-9{height:9%}.ph-10{height:10%}.ph-11{height:11%}.ph-12{height:12%}.ph-13{height:13%}.ph-14{height:14%}.ph-15{height:15%}.ph-16{height:16%}.ph-17{height:17%}.ph-18{height:18%}.ph-19{height:19%}.ph-20{height:20%}.ph-21{height:21%}.ph-22{height:22%}.ph-23{height:23%}.ph-24{height:24%}.ph-25{height:25%}.ph-26{height:26%}.ph-27{height:27%}.ph-28{height:28%}.ph-29{height:29%}.ph-30{height:30%}.ph-31{height:31%}.ph-32{height:32%}.ph-33{height:33%}.ph-34{height:34%}.ph-35{height:35%}.ph-36{height:36%}.ph-37{height:37%}.ph-38{height:38%}.ph-39{height:39%}.ph-40{height:40%}.ph-41{height:41%}.ph-42{height:42%}.ph-43{height:43%}.ph-44{height:44%}.ph-45{height:45%}.ph-46{height:46%}.ph-47{height:47%}.ph-48{height:48%}.ph-49{height:49%}.ph-50{height:50%}.ph-51{height:51%}.ph-52{height:52%}.ph-53{height:53%}.ph-54{height:54%}.ph-55{height:55%}.ph-56{height:56%}.ph-57{height:57%}.ph-58{height:58%}.ph-59{height:59%}.ph-60{height:60%}.ph-61{height:61%}.ph-62{height:62%}.ph-63{height:63%}.ph-64{height:64%}.ph-65{height:65%}.ph-66{height:66%}.ph-67{height:67%}.ph-68{height:68%}.ph-69{height:69%}.ph-70{height:70%}.ph-71{height:71%}.ph-72{height:72%}.ph-73{height:73%}.ph-74{height:74%}.ph-75{height:75%}.ph-76{height:76%}.ph-77{height:77%}.ph-78{height:78%}.ph-79{height:79%}.ph-80{height:80%}.ph-81{height:81%}.ph-82{height:82%}.ph-83{height:83%}.ph-84{height:84%}.ph-85{height:85%}.ph-86{height:86%}.ph-87{height:87%}.ph-88{height:88%}.ph-89{height:89%}.ph-90{height:90%}.ph-91{height:91%}.ph-92{height:92%}.ph-93{height:93%}.ph-94{height:94%}.ph-95{height:95%}.ph-96{height:96%}.ph-97{height:97%}.ph-98{height:98%}.ph-99{height:99%}.ph-100{height:100%}
.pb-0{bottom:0%}.pb-1{bottom:1%}.pb-2{bottom:2%}.pb-3{bottom:3%}.pb-4{bottom:4%}.pb-5{bottom:5%}.pb-6{bottom:6%}.pb-7{bottom:7%}.pb-8{bottom:8%}.pb-9{bottom:9%}.pb-10{bottom:10%}.pb-11{bottom:11%}.pb-12{bottom:12%}.pb-13{bottom:13%}.pb-14{bottom:14%}.pb-15{bottom:15%}.pb-16{bottom:16%}.pb-17{bottom:17%}.pb-18{bottom:18%}.pb-19{bottom:19%}.pb-20{bottom:20%}.pb-21{bottom:21%}.pb-22{bottom:22%}.pb-23{bottom:23%}.pb-24{bottom:24%}.pb-25{bottom:25%}.pb-26{bottom:26%}.pb-27{bottom:27%}.pb-28{bottom:28%}.pb-29{bottom:29%}.pb-30{bottom:30%}.pb-31{bottom:31%}.pb-32{bottom:32%}.pb-33{bottom:33%}.pb-34{bottom:34%}.pb-35{bottom:35%}.pb-36{bottom:36%}.pb-37{bottom:37%}.pb-38{bottom:38%}.pb-39{bottom:39%}.pb-40{bottom:40%}.pb-41{bottom:41%}.pb-42{bottom:42%}.pb-43{bottom:43%}.pb-44{bottom:44%}.pb-45{bottom:45%}.pb-46{bottom:46%}.pb-47{bottom:47%}.pb-48{bottom:48%}.pb-49{bottom:49%}.pb-50{bottom:50%}.pb-51{bottom:51%}.pb-52{bottom:52%}.pb-53{bottom:53%}.pb-54{bottom:54%}.pb-55{bottom:55%}.pb-56{bottom:56%}.pb-57{bottom:57%}.pb-58{bottom:58%}.pb-59{bottom:59%}.pb-60{bottom:60%}.pb-61{bottom:61%}.pb-62{bottom:62%}.pb-63{bottom:63%}.pb-64{bottom:64%}.pb-65{bottom:65%}.pb-66{bottom:66%}.pb-67{bottom:67%}.pb-68{bottom:68%}.pb-69{bottom:69%}.pb-70{bottom:70%}.pb-71{bottom:71%}.pb-72{bottom:72%}.pb-73{bottom:73%}.pb-74{bottom:74%}.pb-75{bottom:75%}.pb-76{bottom:76%}.pb-77{bottom:77%}.pb-78{bottom:78%}.pb-79{bottom:79%}.pb-80{bottom:80%}.pb-81{bottom:81%}.pb-82{bottom:82%}.pb-83{bottom:83%}.pb-84{bottom:84%}.pb-85{bottom:85%}.pb-86{bottom:86%}.pb-87{bottom:87%}.pb-88{bottom:88%}.pb-89{bottom:89%}.pb-90{bottom:90%}.pb-91{bottom:91%}.pb-92{bottom:92%}.pb-93{bottom:93%}.pb-94{bottom:94%}.pb-95{bottom:95%}.pb-96{bottom:96%}.pb-97{bottom:97%}.pb-98{bottom:98%}.pb-99{bottom:99%}.pb-100{bottom:100%}

/* ---------- 新手引导弹窗（#guide-sheet）：几张卡片左右滑 ---------- */
.gd-pop { width: min(520px, 100%); padding-bottom: 14px; }
.gd-track { position: relative; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.gd-track::-webkit-scrollbar { display: none; }
.gd-track:focus-visible { box-shadow: inset 0 0 0 2px var(--red); }
.gd-card { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 2px 2px 4px; }
.gd-card-fig { margin: 4px 0 14px; }
.gd-card-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.gd-card-t { margin: 0; font-family: var(--kai); font-size: 23px; font-weight: 400; line-height: 1.4; letter-spacing: .04em; color: var(--ink); }
.gd-card-p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.85; color: var(--ink2); }
.gd-card-hello, .gd-card-end { display: flex; flex-direction: column; justify-content: center; min-height: 320px; text-align: center; }
.gd-card-hello .gd-card-t, .gd-card-end .gd-card-t { font-size: 27px; }
.gd-card-mark { display: flex; justify-content: center; margin: 0 0 18px; }
.gd-card-mark svg { width: 64px; height: 64px; }
.gd-end-seal { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--red); color: #F8F4EA; border-radius: 4px; font-family: var(--kai); font-size: 22px; letter-spacing: .1em; writing-mode: vertical-rl; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(248, 244, 234, .55); }
.gd-card-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }
.gd-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.gd-prev { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: var(--ink2); cursor: pointer; }
.gd-prev:disabled { opacity: .35; cursor: default; }
.gd-dots { display: flex; gap: 7px; }
.gd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: background-color .2s, transform .2s; }
.gd-dots i.is-on { background: var(--red); transform: scale(1.2); }
.gd-next { min-width: 96px; }
.gd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule2); font-family: var(--sans); font-size: 13.5px; color: var(--ink3); }
.gd-off { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.gd-off input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.gd-full { color: var(--red); text-decoration: none; white-space: nowrap; }
.gd-full:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .gd-track { scroll-behavior: auto; } }
/* 矮屏手机（320×568 这类）：卡片收紧一些，底下的“一周内不再显示”不被挤出屏幕 */
@media (max-height: 640px) {
  .gd-card-hello, .gd-card-end { min-height: 0; padding: 8px 0; }
  .gd-card-mark { margin-bottom: 10px; }
  .gd-card-mark svg { width: 48px; height: 48px; }
  .gd-card-hello .gd-card-t, .gd-card-end .gd-card-t { font-size: 23px; }
  .gd-card-fig { margin: 2px 0 10px; }
  .gd-card-fig img { width: auto; max-width: 100%; height: 25vh; margin: 0 auto; }
  .gd-card-t { font-size: 20px; }
  .gd-card-p { margin-top: 6px; font-size: 14.5px; line-height: 1.7; }
  .gd-nav { margin-top: 8px; }
  .gd-foot { margin-top: 8px; padding-top: 8px; }
}

/* 第一次打开文章时的小提示 */
.tipb { position: fixed; left: 50%; bottom: 28px; z-index: 60; width: min(440px, calc(100vw - 28px)); padding: 14px 16px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-family: var(--sans); box-shadow: 0 12px 30px rgba(0, 0, 0, .24); transform: translate(-50%, 16px); opacity: 0; transition: opacity .25s, transform .25s; }
.tipb.is-on { opacity: 1; transform: translate(-50%, 0); }
.tipb p { margin: 0; font-size: 14.5px; line-height: 1.75; }
.tipb strong { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 2px; background: var(--red); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; color: #F8F4EA; vertical-align: 1px; }
.tipb-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tipb-btns button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(242, 236, 224, .35); border-radius: 3px; background: none; font-family: var(--sans); font-size: 13.5px; color: var(--paper); cursor: pointer; }
.tipb-btns .tipb-ok { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (max-width: 900px) { .page-article .tipb { bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .tipb { transition: none; } }
