:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#050505;background:#d60000;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}button,input,select,textarea{font:inherit}button,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #1466d0;outline-offset:3px}textarea:focus-visible{outline:3px solid #1466d0;outline-offset:-4px}[hidden]{display:none!important}
.screen{height:100vh;height:100dvh;min-height:620px;overflow:hidden;padding:clamp(8px,1vh,12px) clamp(8px,1vw,16px) 24px;position:relative;background:linear-gradient(116deg,rgba(255,211,25,.94) 0 12%,transparent 12%),repeating-linear-gradient(152deg,rgba(5,5,5,.88) 0 8px,rgba(213,0,0,.98) 8px 44px,rgba(244,23,23,.98) 44px 76px,rgba(255,211,25,.92) 76px 86px),#d60000}
.screen:before{background-image:radial-gradient(rgba(5,5,5,.4) 1px,transparent 1.4px);background-size:10px 10px;content:"";inset:0;opacity:.26;pointer-events:none;position:fixed}
.shell{display:grid;gap:clamp(12px,1.4vh,18px);grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;position:relative;width:100%;z-index:1}
.header{align-items:center;background:#ffd319;border:5px solid #050505;border-radius:10px;box-shadow:inset 0 0 0 4px #fff8d7,7px 7px 0 rgba(0,0,0,.88);display:flex;gap:16px;min-width:0;overflow:hidden;padding:10px 16px;position:relative}
.header:after{background:#ef1616;bottom:12px;content:"";height:7px;left:88px;position:absolute;right:24px}
.header img{display:block;flex:0 0 auto;height:56px;object-fit:contain;width:56px;z-index:1}
.brand-title{min-width:0;position:relative;z-index:1}.header h1{color:#050505;font-size:clamp(26px,4.2vh,38px);font-style:italic;font-weight:1000;line-height:1.05;margin:0;padding:0 8px 5px 0;text-shadow:2px 2px 0 #fff,4px 4px 0 rgba(0,0,0,.28);transform:skewX(-7deg);transform-origin:left center;white-space:nowrap}.title-line{background:#ef1616;height:5px;margin-top:4px;width:min(420px,40vw)}
.header-note{background:#ffd319;font-size:14px;font-weight:850;line-height:1.6;margin:0 0 8px auto;padding-left:16px;position:relative;text-align:right;z-index:1}.header-note span{display:block}
.layout{display:grid;gap:16px;grid-template-columns:280px minmax(0,1fr);min-height:0}.left-panel,.editor-panel{border:5px solid #050505;border-radius:10px;box-shadow:inset 0 0 0 4px #fff,7px 7px 0 rgba(0,0,0,.82);min-height:0;overflow:hidden}.left-panel{background:#fff4d6;display:flex;flex-direction:column;overflow:auto;padding:16px;scrollbar-width:thin;scrollbar-color:#aa9c7c transparent}
.upload-area{background:rgba(255,255,255,.74);border:3px dashed #050505;border-radius:8px;color:#c80d0d;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;gap:4px;min-height:108px;padding:12px 8px;width:100%;transition:background .15s}.upload-area:hover,.upload-area.drag-over{background:#ffdf1c}.upload-plus{font-size:28px;font-weight:1000;line-height:1}.upload-area strong{font-size:17px;font-weight:950}.upload-area small{color:#333;font-size:11px;font-weight:700}.file-info{font-size:11px;color:#514938;line-height:1.5;margin:10px 0 12px;overflow-wrap:anywhere;flex:none}
.tool-card{background:#fffdf0;border:3px solid #050505;border-radius:8px;box-shadow:4px 4px 0 rgba(0,0,0,.78);padding:12px;margin-bottom:16px;flex:none}.tool-card h2{font-size:15px;line-height:1.3;margin:0 0 12px;padding-left:10px;border-left:5px solid #ef1616;font-weight:950}.mode-group{border:0;margin:0;padding:0}.mode-option{align-items:flex-start;cursor:pointer;display:flex;gap:8px;margin:12px 0}.mode-option input,.check-group input,.export-option input{accent-color:#c50000;flex:none;width:16px;height:16px;margin:2px 0 0}.mode-option b{font-size:14px;font-weight:850}.mode-option small{display:block;font-size:11px;color:#514938;line-height:1.5;margin-top:3px}.check-group{border-top:1px solid #d7c9a8;margin:12px 0;padding-top:8px}.check-group label,.export-option{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;cursor:pointer}.check-group label{margin:6px 0}
.button{border:3px solid #050505;border-radius:7px;font-size:14px;font-weight:900;min-height:40px;padding:7px 12px;transition:background .15s,color .15s}.button:active:not(:disabled),.small-button:active:not(:disabled){transform:translate(1px,1px)}.full{width:100%}.yellow{background:#ffd319;color:#050505}.yellow:hover:not(:disabled){background:#ffdf55}.red{background:#ef1616;color:#fff}.red:hover:not(:disabled){background:#c30000}.light{background:#fffdf0;color:#050505}.light:hover:not(:disabled){background:#ffe992}.export-card h2{border-left-color:#1e73d6}.field-label{font-size:11px;font-weight:750;display:block;margin-bottom:5px}.text-input,select{background:#fff;border:2px solid #050505;border-radius:5px;color:#050505;width:100%;padding:8px;font-size:13px;min-width:0}.export-option{font-size:11px;margin:10px 0 12px}.export-card .button+.button{margin-top:8px}.advanced{font-size:11px;line-height:1.5;margin:0 0 12px;flex:none}.advanced summary{cursor:pointer;font-weight:750;padding:4px 0}.advanced label{display:block;margin:6px 0}.advanced select{font-size:12px}.privacy-note{color:#514938;font-size:11px;font-weight:650;line-height:1.7;margin:auto 0 0;padding-top:4px;flex:none}
.workspace{display:flex;flex-direction:column;min-height:0;min-width:0;gap:12px}.editors{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-height:0;flex:1}.editor-panel{background:#fffdf0;display:flex;flex-direction:column;min-width:0}.panel-heading{background:#fff4d6;border-bottom:3px solid #050505;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:60px;flex:none}.panel-heading h2{border-left:5px solid #1e73d6;padding-left:10px;font-size:17px;font-weight:950;white-space:nowrap;margin:0}.result-panel .panel-heading h2{border-color:#ef1616}.small-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.small-button{border:2px solid #050505;border-radius:5px;background:#fffdf0;min-height:32px;padding:4px 10px;color:#050505;font-size:12px;font-weight:850;white-space:nowrap;transition:background .15s}.small-button:hover:not(:disabled){background:#ffd319}.copy-button{background:#ffd319}
textarea{border:0;resize:none;border-radius:0;background:#fff;display:block;flex:1;min-height:0;min-width:0;width:100%;padding:20px;color:#171717;line-height:1.85;font-size:15px;tab-size:4;overflow:auto;scrollbar-width:thin}.source-panel textarea{font-family:ui-monospace,"Cascadia Code",Consolas,"Microsoft YaHei",monospace;background:#fffdf6}.source-panel textarea::placeholder,.result-panel textarea::placeholder{color:#817966;font-family:system-ui,"Microsoft YaHei",sans-serif;opacity:1}.panel-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#625b4c;background:#fff4d6;border-top:1px solid #dacfae;padding:9px 14px;font-size:11px;line-height:1.5;flex:none;font-variant-numeric:tabular-nums}.result-switch{display:flex;background:#fff4d6;border-bottom:1px solid #dacfae;flex:none;padding:8px 14px;gap:8px}.result-switch button{border:2px solid transparent;border-radius:5px;background:transparent;color:#625b4c;font-size:12px;font-weight:750;padding:5px 9px;min-height:30px}.result-switch button[aria-selected=true]{background:#fff;border-color:#050505;color:#050505}.text-view{display:flex;flex-direction:column;flex:1;min-height:0}
.word-preview{overflow:auto;flex:1;min-height:0;background:#dedbd5;padding:16px}.paper{background:#fff;min-height:100%;padding:32px;color:#111;box-shadow:0 2px 8px #0002;font-family:Calibri,"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.75;overflow-wrap:anywhere}.paper h1,.paper h2,.paper h3,.paper h4,.paper h5,.paper h6{line-height:1.5;margin:20px 0 12px;color:#111}.paper h1{font-size:23px}.paper h2{font-size:20px}.paper h3{font-size:18px}.paper h4,.paper h5,.paper h6{font-size:16px}.paper>:first-child{margin-top:0}.paper p{margin:0 0 8px;white-space:pre-wrap;min-height:1em}.paper table{border-collapse:collapse;width:100%;margin:12px 0;font-size:13px;table-layout:fixed}.paper th,.paper td{border:1px solid #d5d9de;padding:6px 8px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}.paper th{background:#f0f2f4}.paper .empty-preview{color:#817966;font-family:system-ui,sans-serif}.status{background:#fff4d6;border:3px solid #050505;border-radius:7px;box-shadow:4px 4px 0 #000b;color:#332d22;padding:10px 14px;font-size:12px;font-weight:750;line-height:1.5;flex:none;min-height:44px;overflow-wrap:anywhere}.status.error{background:#ffe6df;color:#a90000}.status.success{background:#fff6c9}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1600px){.layout{grid-template-columns:300px minmax(0,1fr)}.left-panel{padding:20px}.tool-card{padding:16px}.mode-option small,.file-info,.privacy-note{font-size:12px}textarea{font-size:16px}.panel-heading{min-height:64px}}
@media(max-width:1200px){.layout{grid-template-columns:244px minmax(0,1fr);gap:12px}.left-panel{padding:12px}.editors{gap:12px}.panel-heading{padding:10px;align-items:flex-start;flex-wrap:wrap;min-height:86px}.panel-heading h2{padding-top:3px}.small-actions{gap:4px}.small-button{padding:4px 8px}.panel-footer{font-size:10px;padding:8px}.panel-footer span:last-child{display:none}.paper{padding:20px}textarea{padding:14px;font-size:14px}}
@media(max-width:900px){.screen{height:auto;min-height:100vh;min-height:100dvh;overflow:visible;padding:8px 18px 24px 8px}.shell{height:auto;gap:16px}.header-note{font-size:11px}.header{gap:14px}.layout{grid-template-columns:1fr;gap:16px}.left-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;overflow:visible}.upload-area{grid-column:1/-1;min-height:76px;flex-direction:row;flex-wrap:wrap;column-gap:12px}.upload-area small{flex-basis:100%}.file-info{grid-column:1/-1;margin:0}.tool-card{margin:0}.advanced{align-self:start;margin:0}.privacy-note{margin:0;align-self:end;padding:0}.workspace{min-height:600px}.editors{min-height:520px}.panel-heading{min-height:64px;align-items:center}.panel-footer span:last-child{display:inline}.header h1{font-size:30px}.header img{width:50px;height:50px}.title-line{width:40vw}}
@media(max-width:620px){.header{border-width:4px;padding:10px 12px;gap:14px;box-shadow:inset 0 0 0 3px #fff8d7,4px 4px 0 #000e}.header img{width:44px;height:44px;border-width:3px;box-shadow:3px 3px 0 #fff,5px 5px 0 #050505}.header h1{font-size:clamp(21px,6.8vw,30px)}.header-note{display:none}.header:after{left:82px;bottom:9px;right:15px;height:5px}.title-line{width:54vw;height:4px}.left-panel,.editor-panel{border-width:4px;box-shadow:inset 0 0 0 3px #fff,4px 4px 0 #000d}.left-panel{grid-template-columns:1fr;padding:12px;gap:12px}.upload-area,.file-info{grid-column:auto}.export-card{display:grid;grid-template-columns:1fr 1fr;column-gap:8px}.export-card h2,.export-card .field-label,.export-card .text-input,.export-card .export-option{grid-column:1/-1}.export-card .button+.button{margin-top:0}.export-card .button{font-size:12px;padding:8px 4px;min-height:44px}.tool-card h2{font-size:15px}.mode-group{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mode-option{margin:4px 0}.mode-option small{font-size:10px}.check-group{display:flex;flex-wrap:wrap;gap:4px 12px;margin:8px 0}.check-group label{font-size:11px}.privacy-note{font-size:11px}.editors{grid-template-columns:1fr;gap:16px}.editor-panel{height:400px}.panel-heading{min-height:58px;align-items:center;flex-wrap:nowrap;padding:10px 12px}.panel-heading h2{font-size:16px}.small-button{min-height:34px;font-size:11px;padding:5px 8px}.small-actions{flex-wrap:nowrap}.panel-footer span:last-child{display:inline}.workspace{gap:12px}textarea{font-size:16px;padding:16px}.paper{padding:24px}.status{font-size:11px}.result-switch{padding:7px 12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.editors{grid-template-columns:minmax(0,.42fr) minmax(0,.58fr)}.panel-heading{position:relative;z-index:2;min-height:60px;align-items:center;flex-wrap:nowrap;padding:10px 12px}
.result-heading{gap:8px}.result-heading h2{font-size:16px;padding-left:8px}.result-heading .result-switch{padding:0;border:0;gap:3px;min-width:0;flex:none;margin-left:auto}.result-heading .result-switch button{font-size:11px;padding:5px 6px;min-height:32px;white-space:nowrap}.result-actions{flex:none;flex-wrap:nowrap;gap:6px}.result-actions .small-button{font-size:11px;padding:5px 8px;min-height:32px}.save-menu{position:relative}.save-trigger{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;background:#ef1616;color:#fff}.save-trigger::-webkit-details-marker{display:none}.save-menu[open] .save-trigger,.save-trigger:hover{background:#c30000}.save-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:5;width:280px;max-width:calc(100vw - 64px);padding:16px;background:#fffdf0;border:3px solid #050505;border-radius:8px;box-shadow:5px 5px 0 #000b}.save-popover .button+.button{margin-top:8px}.save-popover .export-option{font-size:12px}.save-popover .button{min-height:42px}.header h1{font-size:clamp(25px,3.8vh,38px)}
@media(max-width:1150px) and (min-width:901px){.result-heading{flex-wrap:wrap;justify-content:space-between;min-height:96px}.result-heading .result-switch{order:3;flex-basis:100%;margin-left:0}.source-panel .panel-heading{min-height:96px}.header-note{font-size:12px}}
@media(max-width:1050px){.header-note{display:none}.header h1{font-size:30px}}
@media(max-width:900px){.left-panel{grid-template-columns:220px minmax(0,1fr);align-items:start}.left-panel .upload-area{grid-column:1;grid-row:1;min-height:120px;flex-direction:column}.left-panel .file-info{grid-column:1;grid-row:2}.left-panel .tool-card{grid-column:2;grid-row:1/3}.result-heading{flex-wrap:wrap;justify-content:space-between;min-height:96px}.result-heading .result-switch{order:3;flex-basis:100%;margin-left:0}.source-panel .panel-heading{min-height:96px}}
@media(max-width:620px){.editors{grid-template-columns:1fr}.header h1{font-size:clamp(17px,4.8vw,29px);white-space:normal;overflow-wrap:anywhere}.header{gap:12px}.left-panel{grid-template-columns:1fr}.left-panel .upload-area,.left-panel .file-info,.left-panel .tool-card{grid-column:auto;grid-row:auto}.left-panel .upload-area{flex-direction:row;min-height:80px}.result-heading .result-switch{flex-basis:auto;order:0;margin-left:auto}.result-heading{min-height:96px}.result-actions{margin-left:auto}.result-heading h2{font-size:15px}.result-heading .result-switch{order:3;flex-basis:100%;margin-left:0}.source-panel .panel-heading{min-height:58px}.save-popover{width:264px}.save-popover .text-input{font-size:16px}.result-panel{height:460px}}
@media(min-width:621px){.panel-heading,.source-panel .panel-heading{min-height:60px}.result-heading{gap:4px;flex-wrap:nowrap;justify-content:space-between;padding:10px 8px}.result-heading h2{font-size:14px;padding-left:6px;border-left-width:4px}.result-heading .result-switch{order:0;flex-basis:auto;margin-left:auto;gap:1px}.result-heading .result-switch button{font-size:10px;padding:5px 4px}.result-actions{margin-left:0;gap:4px}.result-actions .small-button{font-size:10px;padding:5px 5px}}
@media(min-width:1300px){.result-heading{gap:8px;padding:10px 12px}.result-heading h2{font-size:17px;padding-left:10px;border-left-width:5px}.result-heading .result-switch{gap:4px}.result-heading .result-switch button{font-size:12px;padding:5px 8px}.result-actions{gap:6px}.result-actions .small-button{font-size:12px;padding:5px 10px}}
.panel-footer{min-height:52px;padding:8px 12px;align-items:center;justify-content:flex-start;border-top:2px solid #050505;color:#050505;gap:8px}
.panel-footer span{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border:2px solid #050505;border-radius:5px;background:#fffdf0;color:#050505;font-size:12px;font-weight:850;line-height:20px}
#sourceCount,#resultCount{background:#ffd319;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
.toast{position:fixed;right:24px;bottom:24px;z-index:30;max-width:min(480px,calc(100vw - 40px));margin:0;box-shadow:4px 4px 0 #050505}
.panel-title{display:flex;align-items:flex-end;gap:10px;min-width:0;flex-wrap:wrap}.edit-note{font-size:12px;font-weight:700;color:#62513a;line-height:1.3;white-space:nowrap}.result-actions{margin-left:auto}
@media(min-width:621px){.panel-heading,.source-panel .panel-heading,.result-heading{min-height:60px;padding:10px 12px;gap:8px}.result-heading h2{font-size:17px;padding-left:10px;border-left-width:5px}.result-actions .small-button{font-size:12px;padding:5px 10px}}
@media(max-width:1150px) and (min-width:621px){.panel-title{gap:4px 8px}.edit-note{font-size:11px}.result-heading h2{font-size:16px}.result-actions .small-button{font-size:11px;padding:5px 8px}}
@media(max-width:620px){.result-heading{min-height:64px;flex-wrap:nowrap}.panel-title{gap:3px}.panel-title .edit-note{flex-basis:100%;font-size:11px;padding-left:15px}.result-actions .small-button{font-size:11px;padding:5px 8px}.source-panel .panel-heading{min-height:64px}}
@media(max-width:620px){.panel-footer{padding:8px 10px;gap:6px}.toast{right:20px;bottom:20px}}
.small-button,.result-actions .small-button,.panel-footer span,.panel-footer span:last-child{font-size:12px;min-height:32px;padding:4px 10px;line-height:20px}
.panel-footer span:last-child{display:inline-flex}
.save-popover .text-input{margin-bottom:12px}
.brand-title{padding-bottom:9px}.title-english{position:relative;top:.12em}
@media(max-width:900px){.header:after{left:80px}}
@media(max-width:620px){.header img{border:0;border-radius:0;box-shadow:none}.header:after{left:68px}}
