:root{color-scheme:light;--page:#f6f7f3;--paper:#fff;--ink:#26352f;--muted:#7b8580;--green:#244d43;--line:#e1e5de;--soft:#edf2eb;font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #95b6a5;outline-offset:4px}textarea:focus-visible,input:focus-visible{outline:2px solid #8caa9b;outline-offset:2px}button{color:inherit}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}
.site-header{max-width:1240px;padding:28px 44px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}.brand-name{font-size:21px;font-weight:650;letter-spacing:3px}.brand-en{display:block;font-size:9px;letter-spacing:2.4px;color:var(--muted);margin-top:2px}.header-actions{display:flex;align-items:center;gap:25px}.engine{display:flex;align-items:center;gap:8px;font-size:12px;color:#65776b}.dot{width:6px;height:6px;border-radius:50%;background:#638e74}.button{border:0;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;border-radius:8px;transition:background .15s,transform .15s}.button-quiet{background:transparent;font-size:13px;padding:10px 12px}.button-quiet:hover{background:#e9ede5}.button-quiet svg{width:16px;height:16px}
main{max-width:1152px;margin:0 auto;padding:0 24px}.intro{padding:39px 0 35px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2.3px;color:#7d8c7f;display:flex;align-items:center;gap:10px}.eyebrow>span{width:22px;height:1px;background:#7d8c7f}h1{font-family:"PingFang SC","Microsoft YaHei",sans-serif;margin:20px 0 13px;font-size:38px;font-weight:500;letter-spacing:1px;line-height:1.4}h1>span{color:var(--green)}.intro>p{color:var(--muted);font-size:14px;letter-spacing:.4px;margin:0}
.translator{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 30px #20382b06;overflow:hidden}.language-bar{display:grid;grid-template-columns:1fr 44px 1fr;position:relative;align-items:center;min-height:72px;padding:0 25px;border-bottom:1px solid var(--line);gap:0}.source-tabs{display:flex;gap:4px;align-items:center}.language-tab{border:0;background:none;color:#7a827d;font-size:13px;padding:10px 16px;border-radius:7px;white-space:nowrap}.language-tab:hover{background:#f6f7f3}.language-tab.active{background:var(--soft);color:var(--green);font-weight:600}.icon-button{border:0;background:transparent;width:30px;height:30px;border-radius:7px;padding:6px;display:inline-flex;align-items:center;justify-content:center;color:#8a938d}.icon-button:hover{background:#eef1eb;color:var(--green)}.swap-button{border:1px solid var(--line);border-radius:9px;width:34px;height:34px;justify-self:center;background:#fff;color:#6c7e70}.target-language{display:flex;align-items:center;justify-content:space-between;padding-left:23px;font-size:14px;font-weight:600}.target-caption{color:#a0a79f;font-size:11px;font-weight:400;letter-spacing:2px}.editor-grid{display:grid;grid-template-columns:1fr 1fr}.editor{min-width:0;display:flex;flex-direction:column;padding:22px 28px 14px}.source-editor{border-right:1px solid var(--line)}.target-editor{background:#fafbf8}.editor-topline{height:26px;display:flex;justify-content:space-between;align-items:center;color:#9aA298;font-size:11px;letter-spacing:1px}.editor-topline .icon-button{width:25px;height:25px}.editor-topline svg{width:15px;height:15px}textarea{resize:vertical;border:0;background:transparent;color:var(--ink);border-radius:3px;line-height:1.9;font-size:17px;display:block;width:100%;padding:14px 0;min-height:280px;max-height:650px}textarea::placeholder{color:#a5aca4;font-size:16px}#source-text{flex:1}#target-text{min-height:280px;height:100%;resize:none;color:#30473b}.output-wrap{position:relative;flex:1;min-height:280px;display:flex}.output-placeholder{align-self:center;width:100%;text-align:center;padding:24px 0}.translation-symbol{display:flex;align-items:center;justify-content:center;gap:19px;color:#c7d0c0;font-family:Georgia,"Microsoft YaHei",serif;font-size:31px}.translation-symbol>span:first-child{font-size:27px}.symbol-line{height:1px;width:34px;background:#d4dccf;position:relative}.symbol-line:after{content:"";position:absolute;right:0;top:-2px;width:5px;height:5px;border-top:1px solid #d4dccf;border-right:1px solid #d4dccf;transform:rotate(45deg)}.output-placeholder p{font-size:14px;color:#98a38f;letter-spacing:1px;margin:24px 0 9px}.output-placeholder>span{font-size:12px;color:#b3bbad}.editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;font-size:11px;color:#929b91}.character-count{font-variant-numeric:tabular-nums;letter-spacing:.4px}.button-copy{font-size:12px;background:transparent;color:#657e6c;padding:8px 0 8px 8px}.button-copy:not(:disabled):hover{color:var(--green)}.button-copy svg{width:15px;height:15px}.result-tag{color:#718772;background:#eef3e9;letter-spacing:0;font-size:10px;padding:4px 7px;border-radius:4px}.result-tag.incomplete{color:#9a6d32;background:#f8efe0}.action-bar{border-top:1px solid var(--line);padding:18px 26px;display:flex;align-items:center;justify-content:space-between;gap:16px}.keyboard-hint{color:#9ca397;font-size:11px;display:flex;gap:5px;align-items:center}kbd{font:10px "Segoe UI",sans-serif;border:1px solid #e2e7dc;border-radius:4px;padding:3px 5px;background:#fbfcf9;color:#8d9786}.button-primary{background:var(--green);color:white;min-height:42px;padding:12px 22px;font-size:13px;font-weight:500;letter-spacing:.5px}.button-primary:hover:not(:disabled){background:#356354}.button-primary:active:not(:disabled){transform:translateY(1px)}#translate-button{min-width:145px}.spinner{width:15px;height:15px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.context-panel{margin-top:20px;border:1px solid var(--line);border-radius:11px;background:#ffffff55}.context-panel summary{padding:18px 21px;display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none}.context-panel summary::-webkit-details-marker{display:none}.context-title{font-size:12px;display:flex;align-items:center;gap:9px;color:#61705e}.context-title>svg{width:14px;height:14px}.optional{font-size:10px;color:#a4ac9d;margin-left:4px}.context-hint{margin-left:auto;font-size:11px;color:#9ca593}.chevron{width:14px;height:14px;color:#9ba792;transition:transform .15s}.context-panel[open] .chevron{transform:rotate(180deg)}.context-body{border-top:1px solid var(--line);padding:19px 22px}.context-body label{font-size:12px;color:#6e7a68}.context-body textarea{font-size:13px;border:1px solid var(--line);min-height:105px;padding:12px 14px;margin:12px 0;background:white;border-radius:7px}.context-body textarea::placeholder{font-size:13px;color:#a6ae9f}.context-body>span{color:#a0a995;font-size:11px}.principles{display:flex;justify-content:center;gap:35px;padding:27px 0 42px}.principles>span{font-size:11px;color:#9aa58f;display:flex;align-items:center;gap:6px}.principles svg{width:12px;height:12px;color:#91a47f}footer{max-width:1152px;padding:21px 24px 30px;margin:auto;border-top:1px solid #e5e9e0;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#a1aa99}.footer-divider{padding:0 8px;color:#c1c9b9}
.notice{font-size:12px;line-height:1.8;padding:13px 17px;border-radius:8px;background:#f0f1e6;color:#7c7950;border:1px solid #e2e3ce;margin:0 0 18px;overflow-wrap:anywhere}.notice-error{margin:16px 0 0;background:#faf0eb;color:#a46146;border-color:#eed9ce}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--green);color:#fff;font-size:13px;padding:12px 23px;border-radius:9px;box-shadow:0 8px 30px #1b392a20;z-index:3;max-width:90%;text-align:center}
dialog{width:440px;max-width:calc(100% - 32px);padding:29px;border:1px solid var(--line);border-radius:15px;color:var(--ink);box-shadow:0 20px 100px #18352830}dialog::backdrop{background:#20322850;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dialog-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.dialog-heading h2{font-size:23px;font-weight:500;margin:12px 0 0}.dialog-description{color:#87907f;font-size:13px;line-height:1.8;margin:21px 0}.dialog-heading .icon-button{margin-top:-7px;margin-right:-7px}dialog label{display:block;font-size:12px;color:#61705e;margin-bottom:9px}dialog input{width:100%;padding:12px;border:1px solid #dce3d6;border-radius:7px;color:var(--ink);background:#fbfcf9;font-size:14px}.field-help{font-size:11px;color:#99a28f;line-height:1.8;margin:11px 0 20px}.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}.settings-error{font-size:12px;line-height:1.7;color:#a46146}
@media(min-width:1500px){.intro{padding-top:60px;padding-bottom:42px}textarea,.output-wrap,#target-text{min-height:330px}}
@media(max-width:760px){.site-header{padding:22px 24px}.header-actions{gap:9px}.engine{font-size:10px}.brand-name{font-size:18px}.brand img{width:34px;height:34px}.brand-en{font-size:8px}.button-quiet{padding:8px;font-size:12px}main{padding:0 18px}.intro{padding:27px 2px 29px}h1{font-size:30px;letter-spacing:0}.eyebrow{font-size:8px;letter-spacing:1.6px}.intro>p{font-size:12px}.language-bar{padding:0 15px;min-height:66px;grid-template-columns:1fr 38px auto}.language-tab{padding:9px 10px;font-size:12px}.target-language{padding-left:12px;font-size:12px;min-width:62px}.target-caption{display:none}.editor-grid{grid-template-columns:1fr}.editor{padding:16px 21px 11px}.source-editor{border-right:0;border-bottom:1px solid var(--line)}textarea{font-size:16px;min-height:180px}.output-wrap,#target-text{min-height:180px}textarea::placeholder{font-size:14px}.output-placeholder{padding:25px 0}.translation-symbol{font-size:24px}.output-placeholder p{margin-top:17px;font-size:12px}.action-bar{padding:15px 20px}.keyboard-hint{font-size:10px}.context-panel summary{padding:16px}.context-hint{font-size:10px}.principles{gap:20px;padding:25px 0 32px}.principles>span{font-size:10px}footer{margin:0 18px;padding:20px 3px;flex-direction:column;gap:11px;font-size:9px}.context-title{font-size:11px}}
@media(max-width:400px){.site-header{padding:20px 18px}.engine{display:none}.source-tabs{gap:0}.language-tab{padding:9px 7px}.context-hint{display:none}.chevron{margin-left:auto}.keyboard-hint>span{display:none}.principles{gap:12px}.principles>span{font-size:9px}.target-language{padding-left:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition:none!important}}
