.text-word-page{padding-bottom:34px}
.text-word-hero{margin-bottom:18px}
.text-word-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:18px;align-items:start}
.text-word-editor,.text-word-preview-panel,.text-word-result{min-width:0;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 4px 14px rgba(15,23,42,.045)}
.text-word-editor{padding:22px}
.text-word-section-head,.text-word-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.text-word-section-head h2,.text-word-result-head h2{margin:0;color:#111827;font-size:18px;line-height:1.4;font-weight:700}
.text-word-section-head p,.text-word-result-head p{margin:5px 0 0;color:#6b7280;font-size:13px;line-height:1.55}
.text-word-label{display:block;margin:19px 0 8px;color:#374151;font-size:14px;font-weight:650}
.text-word-label>span{margin-left:5px;color:#9ca3af;font-size:12px;font-weight:400}
.text-word-label .required-mark{color:#dc2626}
.text-word-title-input,.text-word-content-input,.text-word-option select{width:100%;box-sizing:border-box;border:1px solid #d7dce3;border-radius:9px;background:#fff;color:#111827;font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}
.text-word-title-input{height:43px;padding:0 12px;font-size:14px}
.text-word-content-input{display:block;min-height:260px;padding:12px;resize:vertical;font-size:14px;line-height:1.75;white-space:pre-wrap}
.text-word-title-input:focus,.text-word-content-input:focus,.text-word-option select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.text-word-content-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.text-word-content-head .text-word-label{margin-bottom:8px}
.text-word-counter{color:#9ca3af;font-size:12px;font-variant-numeric:tabular-nums}
.text-word-hint{margin:7px 0 0;color:#9ca3af;font-size:12px;line-height:1.5}
.text-word-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:17px;padding-top:16px;border-top:1px solid #eef0f3}
.text-word-option{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#4b5563;font-size:13px}
.text-word-option select{width:auto;min-width:108px;height:36px;padding:0 9px;font-size:13px}
.text-word-error{margin-top:14px;padding:10px 12px;border-left:3px solid #dc2626;border-radius:4px;background:#fef2f2;color:#991b1b;font-size:13px;line-height:1.5}
.text-word-error[hidden]{display:none}
.text-word-submit-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}
.text-word-submit{display:inline-flex;align-items:center;justify-content:center;min-width:190px;min-height:46px;padding:0 22px;border:0;border-radius:9px;background:#2563eb;color:#fff;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 4px 10px rgba(37,99,235,.2);transition:background .15s,transform .15s,opacity .15s}
.text-word-submit:hover{background:#1d4ed8;transform:translateY(-1px)}
.text-word-submit:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}
.text-word-submit:disabled{opacity:.65;cursor:wait;transform:none}
.text-word-submit-note{color:#6b7280;font-size:12px;line-height:1.5}
.text-word-preview-panel{padding:20px}
.text-word-preview-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:28px;border-radius:7px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:700}
.text-word-paper{box-sizing:border-box;min-height:480px;margin:18px auto 0;padding:48px 42px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 5px 18px rgba(15,23,42,.08);color:#111827;overflow-wrap:anywhere}
.text-word-paper h3{margin:0 0 20px;color:#111827;font-family:"宋体",SimSun,serif;font-size:24px;line-height:1.5;text-align:center;white-space:pre-wrap}
.text-word-preview-content{color:#1f2937;font-family:"宋体",SimSun,serif;font-size:16px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.text-word-preview-paragraph{margin:0 0 10.667px;text-indent:32px;white-space:pre-wrap;overflow-wrap:anywhere}
.text-word-preview-content.is-empty{color:#a1a1aa}
.text-word-preview-foot{display:flex;align-items:center;gap:7px;margin-top:12px;color:#9ca3af;font-size:12px}
.text-word-preview-dot{width:6px;height:6px;border-radius:50%;background:#22c55e}
.text-word-result{margin-top:18px;padding:20px 22px}
.text-word-task-list{margin-top:14px}
.text-word-empty{padding:18px 12px;border:1px dashed #dbe1e8;border-radius:10px;color:#9ca3af;font-size:13px;text-align:center}
.text-word-task-list:not(:empty)+.text-word-empty{display:none}
@media(max-width:880px){.text-word-layout{grid-template-columns:minmax(0,1fr)}.text-word-preview-panel{order:2}.text-word-editor{order:1}.text-word-paper{min-height:390px}}
@media(max-width:600px){.text-word-editor,.text-word-preview-panel,.text-word-result{padding:16px;border-radius:12px}.text-word-options{grid-template-columns:minmax(0,1fr)}.text-word-option select{min-width:120px}.text-word-content-input{min-height:220px}.text-word-paper{min-height:350px;padding:34px 26px}.text-word-submit-row{align-items:stretch;flex-direction:column}.text-word-submit{width:100%}.text-word-submit-note{text-align:center}.text-word-result{margin-top:14px}}
