:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#14284b;background:#f2f6ff;--blue:#1855d9;--muted:#4b6082;--line:#cfdaed}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh}
main{max-width:46rem;margin:auto;padding:max(1.1rem,env(safe-area-inset-top)) clamp(1rem,4vw,2rem) max(1.5rem,env(safe-area-inset-bottom))}
header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.brand{display:flex;gap:.65rem;align-items:center;color:inherit;text-decoration:none;font-size:1.33rem}
.brand img{border-radius:12px}
h1,h2,p{margin:0}
h1{font-size:clamp(1.8rem,6vw,2.6rem);letter-spacing:-.035em}
h2{font-size:1.24rem}
p,li{line-height:1.6}
button,.button{appearance:none;min-height:44px;border:1px solid var(--line);border-radius:13px;padding:.65rem 1rem;background:white;color:var(--blue);font:inherit;font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
:focus-visible{outline:3px solid #3274ee;outline-offset:3px}
.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.plain{background:transparent;border-color:transparent}
.hero{border:1px solid #d5e4ff;background:linear-gradient(145deg,#fff 15%,#e0edff 100%);border-radius:26px;padding:1.5rem clamp(1.25rem,5vw,2.5rem) 1.7rem;box-shadow:0 12px 35px #163a7811}
.hero p{color:var(--muted);margin:.32rem 0 1.15rem}
.hero .primary{width:100%;max-width:21rem}
.art{position:relative;margin:0 auto .8rem;width:min(100%,20rem);height:10.5rem;border-radius:18px;background:radial-gradient(ellipse at center,#c7dfff,transparent 68%);overflow:hidden}
.paper{position:absolute;top:1.2rem;left:calc(50% - 2.65rem);height:7.7rem;width:5.3rem;border:1px solid #adc9f3;border-radius:11px;background:#fcfdff;box-shadow:0 7px 20px #184fa229}
.paper.shadow{transform:translate(.55rem,.2rem) rotate(13deg);background:#d8e8ff}
.paper.front{transform:rotate(-10deg);padding:1.6rem .8rem}
.paper i{display:block;height:.34rem;margin:.52rem 0;border-radius:8px;background:#80a9ea}.paper i:last-child{width:65%}
.beam{position:absolute;top:5.4rem;left:24%;right:24%;height:2px;background:#2e6ee8;box-shadow:0 0 12px 2px #6d9fff}
.corner{position:absolute;width:1.15rem;height:1.15rem;border:solid #2965d0;border-width:0}.tl{left:24%;top:15%;border-top-width:2px;border-left-width:2px}.tr{right:24%;top:15%;border-top-width:2px;border-right-width:2px}.bl{left:24%;bottom:15%;border-bottom-width:2px;border-left-width:2px}.br{right:24%;bottom:15%;border-bottom-width:2px;border-right-width:2px}
.history{margin-top:1.75rem}
.history h2{margin-bottom:.75rem}
#records{display:grid;gap:.6rem}
.empty,.record{border:1px solid var(--line);border-radius:15px;background:white;padding:1rem}
.empty,.muted,footer{color:var(--muted)}
.record{width:100%;display:flex;text-align:left;justify-content:space-between;gap:.6rem;color:inherit}
.record small{font-size:.875rem;color:var(--muted);white-space:nowrap;font-weight:500}
.back{padding-left:0;margin-bottom:.25rem}
.toolbar{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}
.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));gap:.8rem}
figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:.6rem;text-align:center}
figure img{width:100%;aspect-ratio:3/4;object-fit:contain;background:#eef4fd;border-radius:7px}
figcaption{font-size:.9rem;margin-top:.4rem;color:var(--muted)}
.danger{color:#a12638}
#detail>.danger{margin-top:.65rem;padding-left:0}
#status{min-height:1.6rem;margin:.7rem 0;color:#174eb6;font-weight:650}
footer{font-size:.875rem}
dialog{width:min(92vw,30rem);border:1px solid var(--line);border-radius:20px;padding:1.25rem;color:#14284b}
dialog::backdrop{background:#10234580}
dialog p{margin-top:.65rem}
dialog ol{padding-left:1.35rem}
.lock form{display:grid;gap:.55rem;max-width:24rem}
.lock label{font-weight:650}
.lock input{font:inherit;border:1px solid var(--line);border-radius:12px;padding:.75rem;color:inherit;background:white}
.lock .primary{margin-top:.45rem}
.lock + footer{margin-top:1rem}
