*{box-sizing:border-box} :root{font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#644c32}body{margin:0;min-height:100vh;background-color:#be8d76;background-image:linear-gradient(90deg,#5e36272b,transparent 3%,transparent 97%,#593d2638),repeating-linear-gradient(90deg,#efd1b010 0px,#78442b15 1px,transparent 2px,transparent 5px),repeating-linear-gradient(91deg,transparent 0px,#ffdeb112 12px,#773f2810 14px,transparent 17px);background-attachment:fixed}button,a,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #346d72;outline-offset:5px}header,footer{background-color:#dfac85;background-image:repeating-linear-gradient(0deg,transparent 0px,#f6d2a92b 2px,#a36e4c15 3px,transparent 5px);box-shadow:0 8px 22px #58392155;border-bottom:2px solid #f0c59c;display:flex;align-items:center;justify-content:space-between}header{height:58px;padding:0 17px;position:sticky;top:0;z-index:5}h1{font-size:16px;font-weight:500;position:absolute;left:50%;transform:translateX(-50%);margin:0;letter-spacing:2px}button{border:1px solid #98623f55;background:linear-gradient(#efc59e70,#b9784760);border-radius:20px;padding:7px 13px}nav{display:flex;gap:8px}header>#menu{font-size:20px;padding:2px 8px}main{padding:0 28px 48px;min-height:calc(100vh - 98px);border-left:15px solid #c4957c;border-right:15px solid #c4957c}.shelf{height:210px;position:relative;display:flex;align-items:flex-end;gap:48px;padding:20px 24px 18px}.shelf:after{content:"";position:absolute;left:0;right:0;bottom:0;height:17px;background:linear-gradient(#9b6850,#c29171 65%,#e6b88f 67%,#e6b88f);clip-path:polygon(2.5% 0,97.5% 0,100% 70%,100% 100%,0 100%,0 70%);filter:drop-shadow(0 12px 10px #56331e)}.shelf:before{content:"";position:absolute;bottom:-28px;left:0;right:0;height:34px;background:linear-gradient(#55322060,transparent);pointer-events:none}.book{width:108px;height:149px;flex:0 0 108px;border:0;border-radius:0;padding:0;position:relative;background:none;perspective:800px;margin-bottom:0;transition:transform .22s;box-shadow:7px 5px 9px #36261855;color:#fff}.book:hover{transform:translateY(-9px) rotate(-2deg)}.book:after{content:"";position:absolute;top:3px;right:-6px;width:6px;height:calc(100% - 2px);background:repeating-linear-gradient(0deg,#d8d6c9 0 1px,#f3f0e7 1px 3px);transform:skewY(32deg);transform-origin:left}.cover{width:100%;height:100%;background:var(--color);text-align:left;position:relative;padding:13px 12px;overflow:hidden;border-left:4px solid #ffffff12;box-shadow:inset 2px 0 2px #0003}.brand{font-size:9px;letter-spacing:2px;opacity:.8}.cover h2{font-size:16px;margin:24px 0 6px;line-height:1.3}.cover h3{font-size:8px;line-height:1.5;font-weight:400;margin:0;position:relative;z-index:1}.spec .cover:after{content:"";background:#f3f3ef;position:absolute;bottom:0;left:0;right:0;height:39px}.edition{position:absolute;bottom:13px;left:12px;font-size:7px;z-index:2;color:#516366;letter-spacing:1px}.cover .seal{position:absolute;right:8px;bottom:10px;width:5px;height:5px;background:#c3a967;z-index:2}.book:nth-child(4) .cover,.book:nth-child(5) .cover{color:#243b3e}.quotes .cover{border:1px solid #bbaa7077;border-left:4px solid #122e2a}.quotes h2{font-family:serif;font-size:18px;margin-top:31px;color:#e3d2a2}.quotes .edition,.mao .edition{color:#dec28a}.mao h2{font-family:STKaiti,KaiTi,serif;color:#f1d28a;font-size:21px;letter-spacing:3px;margin-top:31px}.mao .brand{color:#eacb82;font-size:17px}.mao h3{color:#dfb779}footer{position:fixed;bottom:0;left:0;right:0;height:39px;padding:0 15px;z-index:5;box-shadow:0 -3px 10px #90634733;font-size:11px;border-top:2px solid #edc09b}footer b{font-size:16px;color:#76602d}footer b span{font-size:10px;font-weight:400}#count{border-radius:20px;background:#75612f;color:#f5dfb6;padding:5px 25px}#searchbar{position:fixed;right:18px;top:65px;z-index:8;padding:12px;background:#eed1ac;box-shadow:0 5px 25px #38291844;border-radius:6px}input{padding:8px;border:1px solid #c6b395;background:#fffaf0;color:#453b31;border-radius:4px}aside{position:fixed;left:15px;top:65px;bottom:48px;width:285px;background:#f1dfc6f5;z-index:7;padding:22px;box-shadow:5px 5px 30px #432b2455;overflow:auto}aside h2{font-size:17px}aside button{display:block;border:0;border-bottom:1px solid #b79a7966;background:none;border-radius:0;width:100%;padding:17px 0;text-align:left;font-size:13px}dialog{border:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:#353330;color:#e7dfd3}dialog::backdrop{background:#211f1d}.reader-toolbar{height:60px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;background:#292825;gap:15px}.reader-toolbar button{background:none;color:#eee;border-color:#777}.reader-toolbar a{color:#e8d6b0;font-size:13px}.reading-area{display:flex;align-items:center;justify-content:center;gap:32px;height:calc(100% - 115px);padding:24px}article{width:740px;height:100%;background:#f8f4e9;color:#31312e;box-shadow:0 12px 50px #0008,inset 12px 0 24px #9c92751a;position:relative;padding:32px 45px 48px;overflow:auto;border-radius:2px}.paper-label{font-size:10px;color:#a09b8d;letter-spacing:2px;padding-bottom:15px;border-bottom:1px solid #d9d4c8;margin-bottom:20px}#pageText{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.85 ui-monospace,monospace}#pageNumber{text-align:center;color:#969183;font-size:11px;margin-top:25px}.turn{border:0;background:none;color:#ded3bd;font-size:55px;padding:5px}.turn:disabled{opacity:.2}.reader-bottom{height:55px;display:flex;align-items:center;justify-content:center;gap:18px;font-size:12px}#jump{width:70px;padding:5px}.reader-bottom>span:last-child{opacity:.5;margin-left:25px}article.flip{animation:flip .3s ease-out}@keyframes flip{from{opacity:.2;transform:perspective(1400px) rotateY(-10deg)}to{opacity:1;transform:rotateY(0)}}@media(min-width:1500px){.shelf{gap:65px}.book{width:128px;flex-basis:128px;height:170px}.shelf{height:235px}}@media(max-width:650px){h1{font-size:14px}nav{gap:4px}nav button{padding:6px 8px}nav span{display:none}main{padding:0 12px 48px;border-width:8px}.shelf{gap:30px;padding-left:13px;padding-right:13px;height:195px}.book{width:93px;flex-basis:93px;height:134px}.reading-area{gap:0;padding:12px 0}.turn{font-size:32px;padding:5px}article{padding:22px 20px}#pageText{font-size:12px}.reader-toolbar{padding:0 10px}.reader-toolbar strong{font-size:12px}.reader-bottom>span:last-child{display:none}}
.quotes .cover{background:linear-gradient(0deg,#142725 0%,#142725e8 23%,transparent 65%),url('assets/danny.jpg') 43% 20%/auto 100% no-repeat;border:0;border-left:4px solid #152f2d}.quotes .brand{font-size:6px;letter-spacing:1.5px;color:#fff;text-shadow:0 1px 4px #000}.quotes h2{position:absolute;left:9px;bottom:33px;margin:0;font-size:17px;color:#f5e6bd;text-shadow:0 2px 6px #000}.quotes h3{position:absolute;left:10px;bottom:23px;font-size:7px;color:#d8d3be}.quotes .edition{bottom:9px;font-size:6px}
#pageText h2{font:500 27px/1.5 "PingFang SC",sans-serif;margin:8px 0 18px}#pageText h3{font:500 21px/1.5 "PingFang SC",sans-serif;margin:10px 0 18px}#pageText h4,#pageText h5,#pageText h6{font:600 16px/1.5 sans-serif;margin:8px 0}.shelf{height:clamp(175px,calc((100vh - 98px)/4),235px)}
