:root{color-scheme:light;--ink:#173e36;--muted:#58695e;--line:#ced5c9;--paper:#f4f5ef;--white:#fffefa;font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;background:none;border:0}button:disabled{opacity:.55;cursor:wait}a{color:inherit}header{background:#193d35;color:white}.wrap{max-width:1160px;margin:auto;padding:0 34px}.mast,.mast a,.head-actions,.proof-title,.history>div:first-child,.dialogtop{display:flex;align-items:center}.mast{height:68px;justify-content:space-between}.mast a{gap:13px;color:inherit;text-decoration:none;font-size:16px}.mast i{height:16px;border-left:1px solid #83958a}.seal{font-family:"Songti SC",serif;background:#e6eece;color:#193d35;font-size:21px;border-radius:4px;padding:0 5px}.mast strong{font-size:18px;letter-spacing:.06em}.head-actions{gap:18px;font-size:14px}.head-actions span{color:#d4e1ce}.head-actions button{padding:7px 2px}.head-actions button:last-child{border:1px solid #7b9384;border-radius:5px;padding:6px 12px}
.heading{margin:42px 0 28px}.heading h1{font-family:"Songti SC","Noto Serif CJK SC","STSong",serif;font-weight:700;font-size:clamp(2.4rem,4.1vw,3.4rem);line-height:1.15;margin:0 0 12px;letter-spacing:.015em}.heading p{font-size:16px;color:var(--muted);margin:0;line-height:1.6}.workspace{display:grid;grid-template-columns:1.16fr 1fr;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--white)}h2{font-size:21px;line-height:1.4;margin:0;letter-spacing:.02em}.editor,.proof{padding:28px 32px}.proof{border-left:1px solid var(--line);background:#e8ebdf}.proof-title,.history>div:first-child,.dialogtop{justify-content:space-between}.proof-title span{font-size:13px;color:var(--muted)}.tabs{display:flex;background:#eff1e9;padding:4px;border-radius:7px;gap:3px;margin:20px 0}.tabs button{flex:1;padding:8px 4px;border-radius:4px;font-size:15px}.tabs .selected{background:white;box-shadow:0 1px 3px #173e3628;font-weight:650}label{display:block;margin:15px 0 8px;font-size:15px;font-weight:630}textarea,select,input:not([type=file]){color:var(--ink);width:100%;border:1px solid #a7b5a6;border-radius:5px;padding:11px 12px;background:white;line-height:1.5}textarea{resize:vertical;min-height:86px}::placeholder{color:#657068}select{max-width:100%}.rule{border-top:1px solid var(--line);margin:18px 0}.hint{font-size:14px;color:var(--muted);line-height:1.6;margin:8px 0}.primary{background:var(--ink);color:white;border-radius:5px;padding:12px 18px;font-weight:630}.generate{margin-top:22px;width:100%}button:hover{filter:brightness(.91)}:focus-visible{outline:3px solid #b5721e;outline-offset:3px}::selection{background:#dbe9b8}.cover{height:clamp(300px,31vw,386px);aspect-ratio:3/4;background:#faf6e8;margin:22px auto 0;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 8px 25px #193d3518}.cover img{width:100%;height:76%;object-fit:contain;background:#faf6e8}.cover figcaption{height:24%;border-top:1px solid #a9b49c;margin:0 7%;display:flex;flex-direction:column;justify-content:center;gap:4px}.cover small{font-size:12px;letter-spacing:.12em}.cover strong{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:clamp(17px,1.8vw,25px)}.history{margin:30px 0}.history>div:first-child{padding-bottom:12px;border-bottom:1px solid var(--line)}.history button{font-size:14px}.history .row{width:100%;display:flex;gap:14px;justify-content:space-between;text-align:left;border-bottom:1px solid var(--line);padding:14px 5px}.row b{overflow-wrap:anywhere}.row small{flex-shrink:0;color:var(--muted)}footer.wrap{font-size:13px;color:var(--muted);padding-top:12px;padding-bottom:26px}.strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:15px 0}.strip figure{margin:0;flex:0 0 78%;scroll-snap-align:start}.strip img{width:100%;height:auto;display:block}.strip figcaption{padding:6px 0;font-size:13px}.buttons{display:flex;flex-wrap:wrap;gap:8px}.secondary{border:1px solid #829785;padding:8px 12px;border-radius:5px}.proof p{overflow-wrap:anywhere;line-height:1.65}output{display:block;white-space:pre-wrap;color:#834022;font-size:14px;line-height:1.5;margin-top:7px}dialog{color:var(--ink);border:1px solid var(--line);border-radius:10px;max-width:470px;width:92vw;max-height:90dvh;padding:25px;background:var(--white)}dialog::backdrop{background:#102c2580}dialog .primary{margin-top:16px}details{font-size:14px;margin:12px 0}details li{margin:8px 0;overflow-wrap:anywhere}[hidden]{display:none!important}
@media(max-width:760px){.wrap{padding:0 18px}.mast{height:57px}.head-actions{gap:10px}.head-actions span,.mast i{display:none}.mast a{font-size:0;gap:7px}.heading{margin:25px 0 18px}.heading h1{font-size:36px}.workspace{grid-template-columns:1fr}.editor,.proof{padding:21px}.proof{border-left:0;border-top:1px solid var(--line)}.cover{height:330px;max-width:100%}.history{margin:24px 0}.heading p{font-size:15px}}
