@charset "UTF-8";
:root{--bg:#f6f7f4;--paper:#fff;--ink:#1f2722;--muted:#465048;--line:#e5e9e1;--green:#365e35;--soft:#eff3e9;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;font-size:17px}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #8ca37a;outline-offset:4px}a{color:inherit;text-decoration:none}button{border:0}svg{width:18px;height:18px;display:block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}[hidden]{display:none!important}
.header{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.5%;gap:20px}.brand{display:flex;gap:12px;align-items:center;font-size:22px;font-weight:700;letter-spacing:-.8px}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--green);color:#fff}.brand-mark svg{width:24px;height:24px}.brand-sub{display:block;font-size:14px;font-weight:400;letter-spacing:1.5px;color:var(--muted);margin-top:3px}.header-right{display:flex;gap:25px;align-items:center;font-size:14px}.local-note{display:flex;gap:8px;align-items:center;color:var(--muted)}.status-dot{width:6px;height:6px;background:#8da178;border-radius:50%;display:inline-block;flex-shrink:0}.prototype{background:#f4f5f0;border:1px solid var(--line);padding:7px 10px;border-radius:6px;color:var(--muted);font-size:14px}.prototype span{margin-left:9px;color:var(--muted)}
main{max-width:1540px;margin:auto;padding:43px 4.5% 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;gap:20px}.eyebrow{font-size:14px;letter-spacing:2px;color:var(--muted);font-weight:600}h1{font-size:33px;letter-spacing:1px;margin:11px 0 10px;font-weight:650}.page-heading p{font-size:14px;color:var(--muted);margin:0;letter-spacing:.3px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;padding:11px 15px;font-size:14px;font-weight:550;transition:transform .18s}.button:active:not(:disabled){transform:translateY(1px)}.subtle{border:1px solid #dfe4d9;background:#fff;color:var(--muted)}.subtle:hover{background:var(--soft)}.subtle svg{width:15px;height:15px}
.workspace{display:grid;grid-template-columns:292px minmax(0,1fr);gap:24px;align-items:start}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.sidebar{display:flex;flex-direction:column;gap:18px}.upload-panel,.settings-panel{padding:22px}.section-title{display:flex;align-items:center;gap:9px;margin-bottom:20px}.step{font-family:ui-monospace,monospace;color:var(--muted);background:#f1f4ed;border:1px solid #e4eadb;font-size:14px;border-radius:5px;padding:4px 5px;line-height:1}.section-title h2,h2{font-size:14px;letter-spacing:.5px;font-weight:600;margin:0}.dropzone{width:100%;border:1px dashed #c8d1bd;border-radius:10px;display:flex;align-items:center;flex-direction:column;background:#fbfcf9;padding:23px 5px 20px;transition:background .2s,border-color .2s}.dropzone:hover,.dropzone.is-dragging{background:#edf3e6;border-color:#6d8b58}.upload-icon{width:39px;height:39px;border-radius:10px;background:#edf1e6;color:var(--muted);margin-bottom:12px}.upload-icon svg{width:21px;height:21px}.dropzone strong{font-size:14px;font-weight:550}.dropzone>span:not(.upload-icon){color:var(--muted);font-size:14px;margin-top:7px}.dropzone small{color:var(--muted);font-size:14px;margin-top:16px;letter-spacing:.2px}.file-info{display:flex;align-items:center;gap:9px;margin-top:17px;min-width:0}.file-icon{width:31px;height:34px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}.file-info>div{flex:1;min-width:0}.file-info strong{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.file-info div>span{font-size:14px;color:var(--muted);display:block;margin-top:4px}.demo-badge{font-size:14px;padding:3px 5px;color:var(--muted);background:#f2f4ed;border-radius:4px}
.settings-panel .section-title{margin-bottom:24px}.setting+.setting{border-top:1px solid #eef0e9;padding-top:23px;margin-top:23px}.setting-title{display:flex;gap:8px;align-items:center}.setting-title label{font-size:14px;font-weight:550;flex:1;cursor:pointer}.setting-icon{color:var(--muted)}.setting-icon svg{width:17px;height:17px}.switch{appearance:none;width:28px;height:17px;background:#d9ded3;position:relative;border-radius:10px;margin:0;cursor:pointer;transition:background .2s;flex-shrink:0}.switch:after{content:"";width:11px;height:11px;border-radius:50%;background:#fff;position:absolute;top:3px;left:3px;transition:transform .2s;box-shadow:0 1px 3px #0001}.switch:checked{background:var(--green)}.switch:checked:after{transform:translateX(11px)}.setting p{font-size:14px;color:var(--muted);margin:10px 0 20px;line-height:1.6}.range-label{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted)}.range-label output{font-family:ui-monospace,monospace;font-size:14px;background:#f3f5ef;color:var(--muted);border-radius:4px;min-width:38px;text-align:center;padding:3px 5px}.range-label output span{font-size:14px;margin-left:1px}input[type=range]{appearance:none;display:block;width:100%;height:4px;background:linear-gradient(to right,#6f8c58 0%,#6f8c58 var(--progress,70%),#e8ece2 var(--progress,70%),#e8ece2 100%);border-radius:10px;margin:16px 0 11px;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;background:#fff;border:3px solid #6d8857;border-radius:50%;box-shadow:0 1px 3px #0001}input[type=range]::-moz-range-thumb{width:8px;height:8px;background:#fff;border:3px solid #6d8857;border-radius:50%}input[type=range]:disabled{opacity:.35;cursor:not-allowed}.range-ends{display:flex;justify-content:space-between;color:var(--muted);font-size:14px}.preserve-note{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);margin:23px 0 16px}.preserve-note svg{width:13px;height:13px}.primary{background:var(--green);color:#fff;width:100%;padding:13px 12px;box-shadow:0 3px 5px #3f5b3b12}.primary:hover{background:#375b35}.primary>span:last-child{margin-left:auto}.primary>span:first-child{margin-right:auto}.primary svg{width:15px;height:15px}.primary:disabled{background:#dce2d8;color:var(--muted);box-shadow:none}.prototype-note{text-align:center;font-size:14px;color:var(--muted);margin:11px 0 0;line-height:1.6}.tip{padding:0 8px;display:flex;gap:9px;color:var(--muted)}.tip>span{padding-top:3px}.tip svg{width:16px;height:16px}.tip p{font-size:14px;line-height:1.9;margin:0;color:var(--muted)}.tip strong{display:block;font-size:14px;font-weight:500;color:var(--muted);margin-bottom:3px}
.main-column{min-width:0}.metrics-heading{display:flex;align-items:center;justify-content:space-between;margin:1px 1px 15px}.metrics-heading h2{font-size:14px}.metrics-heading h2>span{font-family:ui-monospace,monospace;color:var(--muted);font-size:14px;letter-spacing:1px;margin-left:7px}.pending-label{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:6px}.pending-label .status-dot{width:5px;height:5px;background:#b1bba6}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:23px}.metric{background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px 15px 14px;min-width:0}.metric>div{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted);gap:3px}.metric svg{width:14px;height:14px;color:var(--muted)}.metric p{font-size:32px;font-weight:400;margin:17px 0 13px;color:var(--muted);line-height:1}.metric small{font-size:14px;font-weight:400;color:var(--muted);margin-left:8px}.metric-hint{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted);border-top:1px solid #f0f2eb;padding-top:11px;gap:4px;line-height:1.5}.metric-hint>span{color:var(--muted);font-size:14px}
.preview-panel{overflow:hidden}.preview-heading{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:15px}.preview-heading>div:first-child{display:flex;align-items:center;gap:9px}.canvas-toolbar{display:flex;justify-content:space-between;align-items:center;padding:11px 19px;background:#fcfdfb;font-size:14px;color:var(--muted)}.canvas-name{display:flex;align-items:center;gap:7px}.canvas-name .status-dot{width:5px;height:5px}.zoom-controls{display:flex;align-items:center;gap:9px}.zoom-controls button{padding:3px;background:transparent;border-radius:3px;color:var(--muted)}.zoom-controls button:hover{background:#e9eee0}.zoom-controls button:disabled{opacity:.3}.zoom-controls svg{width:13px;height:13px}.zoom-controls output{font-family:ui-monospace,monospace;width:42px;text-align:center;font-size:14px}.toolbar-divider{height:12px;border-left:1px solid #e0e5d8;margin:0 2px}.preview-stage{display:flex;min-height:390px;background-color:#edf0e8;background-image:radial-gradient(#c9d0c0 .7px,transparent .7px);background-size:11px 11px;position:relative}.original-pane{position:relative;min-width:0;flex:1;padding:39px 32px 28px;display:flex}.image-label{position:absolute;top:12px;left:16px;display:inline-block;font-size:14px;color:var(--muted);background:#ffffffd9;padding:5px 8px;border:1px solid #e2e7da;border-radius:4px;z-index:1}.image-scroll{width:100%;height:363px;overflow:auto;display:flex;align-items:safe center;justify-content:safe center}.image-scroll img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;box-shadow:0 8px 24px #34422a17;flex-shrink:0;object-fit:contain}.result-pane{position:relative;flex:1;min-width:0;background:#f7f9f3ed;border-left:1px solid #dce3d3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 25px}.result-symbol{background:#ebf0e3;color:var(--muted);width:50px;height:50px;border-radius:15px;margin-bottom:20px}.result-symbol svg{width:25px;height:25px}.result-pane strong{font-size:14px;line-height:1.8;font-weight:500;color:var(--muted)}.result-pane p{font-size:14px;line-height:1.8;color:var(--muted)}.result-badge{font-size:14px;background:#edf1e7;color:var(--muted);border-radius:5px;padding:5px 8px;margin-top:10px}.preview-footer{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;font-size:14px;color:var(--muted);border-top:1px solid var(--line);gap:10px}.preview-footer>span:first-child{display:flex;align-items:center;gap:6px}.preview-footer svg{width:12px;height:12px}.preview-footer>span:last-child{color:var(--muted);font-size:14px}.bottom-row{display:flex;align-items:center;justify-content:space-between;margin-top:15px;gap:12px}.bottom-row p{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:6px;line-height:1.6}.bottom-row p svg{width:13px;height:13px}.export{background:#e9ede2;color:var(--muted);white-space:nowrap;border:1px solid #e2e7d9;font-size:14px}.export svg{width:14px;height:14px}.page-footer{border-top:1px solid #e3e8dc;padding:20px 0;display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:14px;letter-spacing:.7px;margin-top:39px}.page-footer>span:last-child>span{margin:0 8px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#31482f;color:#fff;box-shadow:0 8px 25px #17221520;border:1px solid #617357;border-radius:10px;padding:15px 22px;font-size:14px;z-index:10;line-height:1.8;max-width:calc(100vw - 32px);width:max-content}
@media(min-width:1500px){.image-scroll{height:420px}.original-pane{padding-top:44px;padding-bottom:35px}}
@media(max-width:1150px){main{padding:32px 3% 0}.header{padding:0 3%}.workspace{grid-template-columns:260px minmax(0,1fr);gap:18px}.upload-panel,.settings-panel{padding:19px}.metrics{gap:8px}.metric{padding:14px 10px}.metric>div{font-size:14px}.metric-hint{font-size:14px}.metric>div>[data-icon]{display:none}.original-pane{padding:40px 20px 25px}.image-scroll{height:330px}.preview-stage{min-height:395px}}
@media(max-width:900px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric p{margin:12px 0}.metric>div{font-size:14px}.metric>div>[data-icon]{display:inline-flex}.metric-hint{font-size:14px}.preview-heading{align-items:flex-start;flex-direction:column;padding:16px}.preview-stage.is-comparing{flex-direction:column}.result-pane{min-height:230px;border-left:0;border-top:1px solid #dce3d3}.is-comparing .image-scroll{height:260px}.bottom-row{align-items:flex-start;flex-direction:column}.export{align-self:flex-end}.local-note{display:none}.image-scroll{height:320px}}
@media(max-width:650px){.header{height:73px;padding:0 20px}.brand{font-size:19px}.brand-mark{width:35px;height:35px}.brand-sub{font-size:14px}.prototype{font-size:14px}.prototype span{display:none}main{padding:28px 18px 0}.page-heading{align-items:flex-start;gap:10px;margin-bottom:24px}.eyebrow{font-size:14px;letter-spacing:1.2px}h1{font-size:27px;margin:12px 0}.page-heading p{font-size:14px;line-height:1.8}.subtle{font-size:0;padding:9px;margin-top:22px;gap:0}.subtle svg{width:17px;height:17px}.workspace{display:flex;flex-direction:column;gap:26px}.sidebar,.main-column{width:100%}.sidebar{gap:15px}.upload-panel,.settings-panel{padding:20px}.dropzone{padding:19px}.dropzone small{font-size:14px}.dropzone>span:not(.upload-icon){font-size:14px}.file-info strong{font-size:14px}.file-info div>span{font-size:14px}.setting-title label{font-size:14px}.setting p{font-size:14px}.range-label,.range-ends{font-size:14px}.preserve-note,.prototype-note{font-size:14px}.tip{display:none}.metrics{gap:10px}.metric{padding:16px}.metric-hint{font-size:14px}.metric>div{font-size:14px}.preview-heading{flex-direction:row;align-items:center;padding:14px 12px;gap:9px}.preview-heading h2{font-size:14px}.original-pane{padding:42px 17px 23px}.image-scroll{height:290px}.preview-stage{min-height:350px}.preview-footer{font-size:14px;padding:12px}.preview-footer>span:last-child{display:none}.bottom-row{gap:4px}.page-footer{margin-top:26px;font-size:14px;flex-direction:column;line-height:1.8;gap:5px}.toast{font-size:14px;padding:13px 16px}}
.noise-details{margin:-9px 0 22px;padding:11px 14px;background:#f0f3eb;border:1px solid #e0e7d7;border-radius:8px;color:var(--muted);font-size:14px;line-height:1.8}.noise-details summary{cursor:pointer;overflow-wrap:anywhere}.noise-details p{margin:10px 0 0;color:var(--muted);font-size:14px}.metric.has-value p{color:#2d512c}.metric.has-value p>span{font-variant-numeric:tabular-nums;font-size:28px}.metric.has-value small{display:block;margin:8px 0 0;font-size:14px}.pending-label{max-width:60%;text-align:right;line-height:1.6}.metric p small{line-height:1.5}
.noise-comparison{margin:-7px 0 20px;border:1px solid #d7e2cc;background:#edf4e5;color:#2d512c;font-size:14px;line-height:1.9;padding:13px 15px;border-radius:8px;overflow-wrap:anywhere}.result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center}.result-pane.has-result{padding:39px 32px 28px;background:transparent;justify-content:initial}.export:not(:disabled){background:#456b42;color:#fff;border-color:#456b42}.export:not(:disabled):hover{background:#375b35}.switch:disabled{opacity:.4;cursor:not-allowed}.setting:has(.switch:disabled) .setting-title label{color:var(--muted);cursor:default}
@media(max-width:1150px){.result-pane.has-result{padding:40px 20px 25px}}
@media(max-width:900px){.result-pane.has-result .image-scroll{height:260px}}
@media(max-width:650px){.result-pane.has-result{padding:42px 17px 23px}.noise-comparison{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* 固定前後比較：每張圖片與自己的 KPI 放在同一欄。 */
.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.comparison-pane{min-width:0;display:flex;flex-direction:column}
.comparison-after{border-left:1px solid var(--line)}
.pane-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 18px;background:#fff}
.pane-heading h3{font-size:14px;font-weight:600;margin:0}
.pane-heading>span{font-size:14px;color:var(--muted);line-height:1.5}
.comparison-image,.comparison-image.result-pane.has-result{height:410px;min-height:0;flex:none;padding:18px;border:0;background-color:#edf0e8;background-image:radial-gradient(#c9d0c0 .7px,transparent .7px);background-size:11px 11px}
.comparison-image .image-scroll{height:100%}
.comparison-pane .metrics-group{margin:0;padding:14px;background:#fff;border:0;border-radius:0;flex:1}
.comparison-pane .metrics{grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
.comparison-pane .metric{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 12px;min-height:68px;padding:12px 15px;border:0;border-radius:6px;background:#f5f7f1}
.comparison-pane .metric>div{grid-column:1;grid-row:1 / span 2;font-size:14px;line-height:1.6;color:var(--muted)}
.comparison-pane .metric [data-icon]{display:none}
.comparison-pane .metric p{grid-column:2;grid-row:1 / span 2;display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:3px 7px;max-width:145px;font-size:25px;margin:0;line-height:1.2;text-align:right}
.comparison-pane .metric.has-value p>span{font-size:25px}
.comparison-pane .metric small{display:inline;font-size:14px;margin:0;line-height:1.5;white-space:nowrap}
.metric-change{grid-column:1;grid-row:2;display:block;margin:0;font-size:14px;color:var(--muted);line-height:1.5}.comparison-pane .metric:has(.metric-change)>div{grid-row:1}
.metric-change.is-improved{color:#2d512c;font-weight:600}
.metric-change.is-increased{color:#8b452c;font-weight:600}
.main-column>.noise-details{margin:12px 0 0}
.noise-details .noise-comparison{margin:10px 0 0;font-size:14px;padding:10px}
@media(max-width:1150px){.comparison-image,.comparison-image.result-pane.has-result{height:370px}}
@media(max-width:900px){.comparison-grid{grid-template-columns:1fr}.comparison-after{border-left:0;border-top:1px solid var(--line)}.preview-heading{flex-direction:row;align-items:center}}
@media(max-width:650px){.comparison-image,.comparison-image.result-pane.has-result{height:360px;padding:17px}.pane-heading{padding:13px 15px}.comparison-pane .metric{padding:12px}.comparison-pane .metric p,.comparison-pane .metric.has-value p>span{font-size:26px}}
.image-scroll{position:relative}.text-overlay{position:absolute;z-index:2;pointer-events:none;overflow:visible;fill:none;stroke:#cf8437}.text-overlay rect{fill:#e6a94c16;stroke-width:1.5;vector-effect:non-scaling-stroke}.overlay-toggle{display:flex;align-items:center;gap:7px;margin-top:12px;color:var(--muted);font-size:14px;cursor:pointer}.overlay-toggle input{accent-color:#456b42}

/* 完整品牌名稱在窄螢幕自然換行，保持原有字級。 */
.header{height:auto;min-height:88px;padding-top:16px;padding-bottom:16px}
.brand,.brand>span:last-child{min-width:0}
.brand{line-height:1.25}
.brand-mark{flex-shrink:0}
.header-right{flex-shrink:0}
@media(max-width:650px){.header{height:auto;min-height:73px;padding-top:12px;padding-bottom:12px}}

/* 精簡介紹直接放在 HTML，保留原本工作台操作流程。 */
.skip-link{position:absolute;left:16px;top:-100px;z-index:100;background:#fff;color:var(--green);padding:12px 18px;border:2px solid var(--green);border-radius:8px}
.skip-link:focus{top:12px}
html{scroll-padding-top:20px}
.page-heading>div{min-width:0;max-width:900px}
.page-heading p{max-width:770px;line-height:1.8}
.noscript-note{padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff;line-height:1.8}
.site-footer{width:100%;margin-top:30px;background:#e5ecdf;border-top:1px solid #cbd6c4}
.footer-inner{max-width:1540px;margin:auto;padding:32px 4.5% 0}
.site-note{color:var(--muted);line-height:1.9}
.site-footer .page-footer{margin-top:24px;border-top-color:#cbd6c4}
.site-note h2{font-size:17px;margin:0 0 10px;color:var(--ink)}
.site-note p{font-size:15px;margin:0 0 10px;max-width:100%}
@media(max-width:650px){.page-heading h1{font-size:27px;line-height:1.5}.site-footer{margin-top:24px}.footer-inner{padding:24px 18px 0}}

/* 加深說明與狀態文字，主要操作標籤保持較大的閱讀字級。 */
.setting p,.page-heading p,.site-note p{font-size:15px}
.range-label,.range-ends,.prototype-note,.file-info div>span,.metric-change{font-size:14px}
.comparison-pane .metric p,.comparison-pane .metric.has-value p>span{font-weight:550}

@media(min-width:651px) and (max-width:1150px){.footer-inner{padding-left:3%;padding-right:3%}}

/* 以小型語言按鈕切換獨立頁面，維持簡單工作台。 */
.language-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #cbd6c4;border-radius:8px;background:#edf1e7;font-size:14px;line-height:1.5;white-space:nowrap}
.language-switch a{padding:5px 9px;border-radius:5px;color:var(--ink)}
.language-switch a:hover{background:#dce5d5}
.language-switch a[aria-current=page]{background:var(--green);color:#fff;font-weight:600}
.header-right{gap:16px}
html[lang=en] .setting-title{flex-wrap:wrap}
html[lang=en] .setting-title label{min-width:0}
html[lang=en] .comparison-pane .metric{column-gap:8px}
html[lang=en] .comparison-pane .metric p{max-width:125px}
html[lang=en] .metric small{white-space:normal}
@media(max-width:650px){.header{flex-wrap:wrap;gap:12px}.header-right{width:100%;justify-content:flex-end}.language-switch{font-size:14px}.language-switch a{padding:4px 10px}}
