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}header{background:#fff;border-bottom:1px solid #d9e5e3;justify-content:space-between;align-items:center;gap:24px;padding:16px 2.2vw;display:flex;box-shadow:0 2px 14px #214b5110}.brandArea,.brandSignature,.titleLine{align-items:center;display:flex}.brandArea{gap:17px;min-width:0}.brandSignature{color:#2d4b50;white-space:nowrap;border-right:1px solid #dbe7e5;gap:8px;padding-right:17px;font-size:13px;font-weight:750}.brandSignature img{object-fit:cover;border-radius:8px;width:34px;height:34px;box-shadow:0 2px 8px #6a58182e}.productHeading{min-width:0}.titleLine{gap:12px}header h1{letter-spacing:.01em;margin:0 0 4px;font-size:27px}header p{color:#62767a;margin:0}.titleLine a{color:#3974c2;white-space:nowrap;font-size:14px;font-weight:700;text-decoration:none}.titleLine a:hover{text-decoration:underline}.privacyNote{color:#45666a;background:#eef8f5;border:1px solid #d7ebe5;border-radius:9px;align-items:center;gap:8px;padding:9px 12px;font-size:14px;display:flex}header svg{width:18px}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}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}textarea::placeholder{color:#7b8e91}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}.previewHelp button{min-height:36px;margin-left:auto}.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}.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 fieldset{border:1px solid #d7e0e8;border-radius:7px;margin:14px 0;padding:14px}.dialog legend{padding:0 6px;font-weight:700}.dialog label{border-radius:5px;margin:0;padding:9px}.dialog label input{width:auto;margin:0 8px 0 0;display:inline}.dialog>div:last-child{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}@media (width<=700px){header{flex-direction:column;align-items:flex-start;gap:14px}header h1{font-size:24px}.brandArea{align-items:flex-start;width:100%}.brandSignature{flex-direction:column;gap:2px;padding-right:12px;font-size:10px}.brandSignature span{display:block}.titleLine{flex-wrap:wrap;align-items:baseline;gap:5px 10px}.privacyNote{width:100%}main{padding:12px}.input,.result{padding:15px}textarea{height:34vh}.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}.previewHelp button{width:100%;margin-left:0}.customTools{flex-direction:column;align-items:stretch}.customTools button{width:100%}.pageViewport{gap:14px;padding:10px}.downloads{flex-direction:column}}
