html{min-width:320px}body{min-width:320px;min-height:100vh}#root{min-height:100vh}:root{color:#17343a;background:#f4f8f7;font-family:Inter,Microsoft YaHei,system-ui;font-size:16px}*{box-sizing:border-box}body{background:#f4f8f7;min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{color:#23444a;cursor:pointer;background:#fff;border:1px solid #c9d8db;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 18px;font-weight:650;transition:background .16s,border-color .16s,color .16s,transform .16s;display:inline-flex}button:not(:disabled):hover{background:#f5faf9;border-color:#88aeb1;transform:translateY(-1px)}button:disabled{opacity:.45;cursor:not-allowed}button svg{width:18px}.primary{color:#fff;background:#0f8b83;border-color:#0f8b83}.primary:not(:disabled):hover{background:#0b746f;border-color:#0b746f}main{max-width:1440px;margin:auto;padding:18px 2vw 60px}section{background:#fff;border:1px solid #d6e3e2;border-radius:10px;margin-bottom:16px;box-shadow:0 5px 20px #244b5110}.input{padding:24px}.input>h1{text-align:center;margin:0 0 20px;font-size:clamp(20px,2vw,26px);line-height:1.5}.input>h1 span{display:inline-block}label{margin-bottom:20px;font-weight:650;display:block}input,textarea{color:#17343a;background:#fbfdfd;border:1px solid #b8cbcd;border-radius:8px;outline:none;width:100%;margin-top:8px;padding:12px;display:block}input:focus,textarea:focus{background:#fff;border-color:#0f8b83;box-shadow:0 0 0 3px #0f8b8320}input::placeholder,textarea::placeholder{color:#7b8e91;opacity:1}textarea{resize:vertical;height:190px;line-height:1.7}.indentControl{color:#35575c;cursor:pointer;background:#f1f8f6;border-radius:9px;align-items:center;gap:11px;width:fit-content;margin:-3px 0 17px;padding:10px 12px;display:flex;position:relative}.indentControl input{opacity:0;width:1px;height:1px;position:absolute}.switchTrack{background:#9badb0;border-radius:999px;flex:none;width:42px;height:24px;transition:background .16s;position:relative}.switchTrack:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .16s;position:absolute;top:3px;left:3px;box-shadow:0 1px 5px #16323838}.indentControl input:checked+.switchTrack{background:#0f8b83}.indentControl input:checked+.switchTrack:after{transform:translate(18px)}.indentControl input:focus-visible+.switchTrack{outline:3px solid #0f8b8330}.indentControl>span:last-child{flex-direction:column;gap:2px;display:flex}.indentControl small{color:#6f8386;font-weight:450}.counter{color:#65758b;justify-content:space-between;padding-top:2px;display:flex}.counter.over{color:#9a5c00}.warning{color:#8a6100;background:#fff3c4;margin:8px 0;padding:10px 14px}.inputError{color:#9b2c2c;background:#fff1f1;border-left:3px solid #c43d3d}.actions{flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px;display:flex}.actions small{color:#0f7b75;margin-left:auto}.dangerSoft{color:#b14848;background:#fff7f6;border-color:#edc8c5}.dangerSoft:not(:disabled):hover{color:#963737;background:#ffefed;border-color:#e4aaa5}.issues{background:#fff98b;border-color:#e2d52b;padding:18px 22px}.issues>div{justify-content:space-between;align-items:center;display:flex}.issues ul{flex-wrap:wrap;gap:10px 28px;margin-bottom:0;padding-left:20px;display:flex}mark{background:#ffed48;padding:2px 5px}.result{padding:22px}.resultTop{justify-content:space-between;align-items:center;display:flex}.resultTop h2{font-size:19px}.restoreButton,.randomButton{color:#916116;background:#fff9eb;border-color:#ead4a5}.restoreButton:not(:disabled):hover,.randomButton:not(:disabled):hover{background:#fff2cf;border-color:#d9b96f}.tabs{gap:6px;margin:12px 0 0;display:flex}.tabs button{border-radius:9px 9px 0 0;min-width:160px}.tabs button[data-variant=full]{color:#2f6ebc;background:#f2f7ff;border-color:#cbdcf4}.tabs button[data-variant=full].active{color:#fff;background:#3f7dcc;border-color:#3f7dcc}.tabs button[data-variant=custom]{color:#7254a7;background:#f7f3fc;border-color:#ddd0ef}.tabs button[data-variant=custom].active{color:#fff;background:#8062b2;border-color:#8062b2}.previewHelp{color:#526173;background:#f4f8fa;border:1px solid #d8e4e8;align-items:center;gap:9px;min-height:48px;padding:10px 12px;display:flex}.previewHelp svg{color:#0f8b83;flex:none;width:18px}.customTools{border:1px solid #d8e4e8;border-top:0;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;display:flex}.customTools>span{margin-right:4px;font-weight:700}.customTools button[data-tool=pinyin]{color:#2f6ebc;background:#f2f7ff;border-color:#cbdcf4}.customTools button[data-tool=pinyin].selected{color:#fff;background:#3f7dcc;border-color:#3f7dcc}.customTools button[data-tool=hanzi]{color:#7254a7;background:#f7f3fc;border-color:#ddd0ef}.customTools button[data-tool=hanzi].selected{color:#fff;background:#8062b2;border-color:#8062b2}.clearExerciseButton{color:#287069;background:#eff8f6;border-color:#c5e1db}.toolHint{color:#31505b;background:#eef8f7;border-left:3px solid #0f8b83;flex:1 0 100%;align-items:center;gap:8px;padding:9px 11px;display:flex}.toolHint svg{flex:none;width:17px}.pageViewport{background:#e9edf1;border:1px solid #d3dbe4;flex-direction:column;align-items:center;gap:24px;padding:24px;display:flex;overflow:hidden}.pageShell{flex:none;position:relative}.a4Page{width:210mm;height:297mm;transform:scale(var(--scale));transform-origin:0 0;color:#17243d;background:#fff;padding:15mm;position:absolute;top:0;left:0;box-shadow:0 5px 22px #17243d2b}.pageNumber{z-index:2;color:#566475;font-size:11pt;line-height:1;position:absolute;bottom:5mm;left:50%;transform:translate(-50%)}.docTitle{-webkit-line-clamp:2;text-align:center;-webkit-box-orient:vertical;align-content:center;height:26mm;padding:2mm 5mm;font-weight:700;line-height:1.35;display:-webkit-box;overflow:hidden}.docTitle.size-large{font-size:18pt}.docTitle.size-medium{font-size:15pt}.docTitle.size-small{font-size:12pt}.pageGrid{flex-direction:column;width:180mm;display:flex}.titlePageGrid{gap:1mm}.plainPageGrid{gap:1.36mm}.gridLine{background:#fff;border:.25mm solid #789496;flex:0 0 21mm;width:180mm;height:21mm;display:flex}.paperCell{--span:1;flex:0 0 calc(15mm * var(--span));width:calc(15mm * var(--span));background:#fff;border:0;border-right:.25mm solid #789496;border-radius:0;flex-direction:column;justify-content:flex-start;align-items:stretch;min-width:0;height:21mm;padding:0;display:flex}.paperCell:last-child{border-right:0}.pinyin{color:#30445e;white-space:nowrap;border:0;border-bottom:.25mm dashed #789496;flex:0 0 6mm;justify-content:center;align-items:center;width:100%;min-width:0;height:6mm;font-size:10pt;line-height:1;display:flex;position:relative}.pinyin em{z-index:1;font-style:normal;position:relative}.pinyinGuide,.tianGuide{pointer-events:none;position:absolute;top:0;bottom:0}.pinyinGuide:not(:last-of-type),.tianGuide:not(:last-of-type){border-right:.25mm solid #789496}.pinyinGuide:before,.pinyinGuide:after,.tianGuide:before,.tianGuide:after{content:"";pointer-events:none;position:absolute}.pinyinGuide:before,.pinyinGuide:after{border-top:.2mm dashed #c2d0d1;left:0;right:0}.pinyinGuide:before{top:33.333%}.pinyinGuide:after{top:66.666%}.writingGrid{border:0;flex:0 0 15mm;place-items:center;width:100%;min-width:0;height:15mm;display:grid;position:relative}.tianGuide:before{border-top:.2mm dashed #b8c6c8;top:50%;left:0;right:0}.tianGuide:after{border-left:.2mm dashed #b8c6c8;top:0;bottom:0;left:50%}.writingGrid b{z-index:1;font-weight:500;position:relative}.hanWriting b{font-family:KaiTi,STKaiti,serif;font-size:22pt}.plainWriting b{white-space:nowrap;font-family:Arial,sans-serif;font-size:15pt}.punctWriting{place-items:end}.punctWriting b{padding:0 2.2mm 1.8mm 0;font-family:Microsoft YaHei,sans-serif;font-size:19pt;line-height:1}.blankWriting b,.indentWriting b{display:none}.exercise-pinyin,.exercise-hanzi{outline-offset:-1px;outline:1px solid #0f8b83}.downloads{gap:12px;margin-top:18px;display:flex}.downloads button{flex:1;min-height:58px}.seoGuide{background:#fff;border:1px solid #d6e3e2;border-radius:10px;padding:24px;line-height:1.7;box-shadow:0 5px 20px #244b5110}.guideGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px;display:grid}.guideGrid>div{background:#f7fbfa;border:1px solid #dce8e6;border-radius:9px;padding:18px}.guideGrid h3{margin:0 0 8px;font-size:17px}.guideGrid p,.guideGrid ol{color:#526b70;margin:0}.guideGrid ol{padding-left:21px}.guideGrid p+p,.guideGrid li+li{margin-top:12px}.downloadFull{color:#fff;background:#2f7f8c;border-color:#2f7f8c}.downloadFull:not(:disabled):hover{color:#fff;background:#276b76;border-color:#276b76}.downloadCustom{color:#fff;background:#8062b2;border-color:#8062b2}.downloadCustom:not(:disabled):hover{color:#fff;background:#6c519b;border-color:#6c519b}.overlay{z-index:9;background:#14223d80;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.dialog{background:#fff;border-radius:10px;width:min(560px,100%);max-height:90vh;padding:26px;overflow:auto;box-shadow:0 20px 60px #07122555}.dialog h2{margin-top:0}.toneHint{color:#355f67;background:#eef8f7;border-left:3px solid #0f8b83;padding:9px 11px;line-height:1.6}.dialog>div:last-child{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}@media (width<=1100px){textarea{height:280px}}@media (width<=700px){main{padding:12px}.input,.result,.seoGuide{padding:15px}.guideGrid{grid-template-columns:1fr}textarea{height:max(34vh,400px)}.input>h1 span{display:block}.counter{flex-direction:column;gap:6px}.indentControl,.actions button,.downloads button{width:100%}.actions small{margin-left:0}.resultTop{flex-direction:column;align-items:flex-start;gap:10px}.tabs{overflow:auto}.tabs button{min-width:145px}.previewHelp{flex-wrap:wrap;align-items:flex-start}.customTools{flex-direction:column;align-items:stretch}.customTools button{width:100%}.pageViewport{gap:14px;padding:10px}.downloads{flex-direction:column}}.siteHeader,.siteFooter,.brandDialog{--brand-ink:#17352f;--brand-muted:#62716d;--brand-green:#1f6454;color:var(--brand-ink);font-family:Inter,ui-sans-serif,system-ui,Segoe UI,Microsoft YaHei,sans-serif}.brandShell{width:min(1180px,100% - 40px);margin:0 auto}.siteHeader{background:#fbfaf5;border-bottom:1px solid #dfe4dd}.navShell{justify-content:space-between;align-items:center;gap:20px;min-height:78px;display:flex}.siteBrand{color:inherit;flex-shrink:0;align-items:center;gap:11px;text-decoration:none;display:flex}.siteBrand img,.footerBrand img{object-fit:contain;flex-shrink:0;display:block}.siteBrandCopy{flex-direction:column;line-height:1.1;display:flex}.siteBrandCopy strong{letter-spacing:-.2px;font-family:Georgia,Times New Roman,serif;font-size:17px}.siteBrandCopy small{color:var(--brand-muted);letter-spacing:.18em;margin-top:4px;font-size:11px}.siteNavigation{align-items:center;gap:7px;display:flex}.siteNavigation a{color:#53635f;border-radius:999px;align-items:center;gap:6px;padding:9px 13px;font-size:14px;font-weight:650;text-decoration:none;display:flex}.siteNavigation a:hover,.siteNavigation a[aria-current]{color:var(--brand-green);background:#e9f1ec}.siteNavigation a[aria-current]:before{content:"";background:#f39a78;border-radius:50%;width:5px;height:5px}.siteMenu{width:44px;color:var(--brand-green);background:#edf2ed;border:0;flex-shrink:0;padding:9px;display:none}.siteHeader :focus-visible,.siteFooter :focus-visible,.brandDialog :focus-visible,.seoGuide summary:focus-visible{outline-offset:4px;outline:3px solid #1f6454}.siteFooter{background:#fff;border-top:1px solid #dfe4dd}.footerInner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:22px;padding:26px 0;display:flex}.footerBrand{color:inherit;align-items:center;gap:11px;font-family:Georgia,Times New Roman,serif;font-size:17px;font-weight:700;text-decoration:none;display:flex}.footerBrand>span>span{color:var(--brand-green)}.footerSocial{flex-wrap:wrap;justify-content:center;gap:6px 18px;display:flex}.footerSocial button,.footerLinks button{color:var(--brand-muted);background:0 0;border:0;border-radius:0;padding:0;font-size:14px;font-weight:500}.footerSocial button svg{width:22px;height:22px}.siteFooter button:hover{color:var(--brand-green);background:0 0;transform:none}.footerMeta{margin-left:auto}.footerLinks{color:var(--brand-muted);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px 8px;font-size:14px;display:flex}.footerLinks a{color:inherit;padding:12px 0;text-decoration:none}.footerLinks a:hover{color:var(--brand-green);text-decoration:underline}.siteCopyright{color:var(--brand-muted);text-align:right;letter-spacing:.03em;margin:0;font-size:10px}.brandDialog{border:1px solid #dfe4dd;border-radius:16px;width:min(580px,100% - 32px);max-height:calc(100dvh - 32px);padding:26px;overflow:auto;box-shadow:0 20px 60px #17352f30}.brandDialog::backdrop{background:#17352f99}.brandDialog h2{margin:0 48px 20px 0;font-size:23px}.brandDialog h3{margin-top:24px;font-size:17px}.brandDialog p,.brandDialog li{font-size:14px;line-height:1.7}.brandDialog a{color:var(--brand-green);text-underline-offset:3px;overflow-wrap:anywhere}.brandDialogClose{background:#edf2ed;border:0;width:44px;padding:8px;position:absolute;top:16px;right:16px}.channelChoices a{border:1px solid #dfe4dd;border-radius:10px;margin-top:12px;padding:14px;display:block}.qrContent{text-align:center}.qrContent img{object-fit:contain;max-width:100%;height:auto}.toolLicences ul{padding-left:22px}.toolLicences li{margin-bottom:8px}.seoGuide summary{cursor:pointer;color:#17352f;font-size:17px;font-weight:700;line-height:1.5}.seoGuide summary::marker{color:#1f6454}.seoGuide .guideGrid{margin-top:24px}.seoGuide h3 span,.seoGuide li span{margin-top:5px;display:block}.seoGuide p[lang=en],.seoGuide li span{color:#536967}.seoGuide h3 span{color:#536967;font-size:14px;font-weight:500}@media (width<=1000px){.footerInner{justify-content:center}.footerMeta{margin-left:0}.footerLinks{justify-content:center}.siteCopyright{text-align:center}}@media (width<=800px){.navShell{flex-wrap:wrap;gap:0;min-height:72px;padding:15px 0;position:relative}.siteMenu{display:inline-flex}.siteNavigation{flex-direction:column;order:3;align-items:stretch;gap:4px;width:100%;padding-top:14px;display:none}.siteNavigation.isOpen{display:flex}.siteNavigation a{border-radius:8px;min-height:44px}}@media (width<=480px){.brandShell{width:calc(100% - 24px)}.siteBrandCopy strong{font-size:15px}.siteBrand img{width:38px;height:38px}.footerBrand{font-size:15px}.footerMeta{width:100%}.brandDialog{padding:20px}}@media (prefers-reduced-motion:reduce){.siteHeader button,.siteFooter button{transition:none}}.siteHeader{background:#fff}.siteBrand img{width:42px;height:42px;box-shadow:none;border-radius:7px}.siteBrandCopy strong{font:700 17px/1.1 Georgia,serif}.siteBrandCopy small{letter-spacing:normal;font-size:11px}.siteNavigation a{background:0 0;border-radius:0;font:500 14px/21px Inter,ui-sans-serif,system-ui,sans-serif}.siteNavigation a:hover,.siteNavigation a[aria-current]{background:0 0}.siteNavigation a[aria-current]{text-underline-offset:8px;-webkit-text-decoration:underline #ffe15a;text-decoration:underline #ffe15a;text-decoration-thickness:2px}.siteNavigation a[aria-current]:before{display:none}.siteFooter .footerInner{flex-flow:wrap;justify-content:space-between;align-items:center;gap:8px 24px;padding:18px 0}.siteFooter .siteCopyright{color:#62716d;text-align:left;letter-spacing:normal;text-transform:none;margin:0;font-size:13px;line-height:1.5}.siteFooter .footerLinks{justify-content:flex-end;gap:0 18px;max-width:100%}.siteFooter .footerLinks a,.siteFooter .footerLinks button{align-items:center;min-height:44px;padding:0;font:500 14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;display:inline-flex}#brandAboutDialog .footerSocial{justify-content:flex-start}#brandAboutDialog .footerSocial button{align-items:center;gap:8px;min-height:44px;display:inline-flex}@media (width<=760px){.siteFooter .footerInner{flex-direction:column;align-items:flex-start}.siteFooter .footerLinks{justify-content:flex-start}}@media (width<=650px){.siteBrand img{width:38px;height:38px}.siteBrandCopy strong{font-size:17px}}.siteHeader .siteBrandCopy small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.siteHeader .siteNavigation a{white-space:nowrap;align-items:center;gap:5px;display:flex}.siteHeader .siteNavigation .shopExternalIcon{flex:0 0 14px;width:14px;height:14px}
