:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --bg:#f5f6f1; --surface:#fff; --ink:#172018; --muted:#606a60; --line:#d8ddd4; --green:#285c3c; --soft:#e5eee5; --error:#962f27; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { max-width: 1200px; min-height:100vh; margin:0 auto; padding:0 clamp(20px,5vw,64px); display:flex; flex-direction:column; color:var(--ink); background:var(--bg); }
.site-header { min-height:82px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:11px; color:var(--ink); text-decoration:none; font-size:19px; font-weight:760; }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--green); color:white; font-size:15px; font-weight:800; }
.header-label, footer { color:var(--muted); font-size:13px; }
main { flex:1; }
.hero { padding:clamp(52px,8vw,92px) 0 48px; }
.eyebrow { margin:0 0 12px; color:var(--green); font-size:12px; font-weight:800; }
h1 { margin:0; font-size:clamp(42px,7vw,76px); line-height:1.08; font-weight:780; letter-spacing:0; }
h1 span { color:var(--green); }
.summary { max-width:620px; margin:22px 0 0; color:var(--muted); line-height:1.75; }
.workspace { padding-bottom:72px; }
.drop-zone { min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; border:1px dashed #9da99b; border-radius:8px; background:var(--surface); cursor:pointer; transition:border-color 150ms, background 150ms; }
.drop-zone:hover, .drop-zone.dragging { border-color:var(--green); background:var(--soft); }
.drop-zone strong { font-size:20px; }
.drop-zone > span:last-child { color:var(--muted); font-size:13px; }
.upload-icon { width:46px; height:46px; display:grid; place-items:center; margin-bottom:5px; border-radius:50%; background:var(--soft); color:var(--green); font-size:23px; }
.editor { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr); gap:18px; }
.preview-panel, .controls, .result { border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.preview-panel { min-width:0; padding:20px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:15px; align-items:end; }
.preview-panel img { grid-column:1/-1; width:100%; height:390px; object-fit:contain; background:#eef0eb; border-radius:5px; }
.source-info { min-width:0; display:flex; flex-direction:column; gap:4px; }
.source-info strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.source-info span { color:var(--muted); font-size:13px; }
.text-button { border:0; border-bottom:1px solid currentColor; padding:2px 0; background:transparent; color:var(--green); font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.controls { padding:24px; }
.control-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:25px; }
.control-head h2, .result h2 { margin:0; font-size:25px; }
.control-head > span { color:var(--muted); font-size:12px; }
.controls label { display:block; margin:18px 0 8px; font-size:13px; font-weight:700; }
input, select { width:100%; min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:white; color:var(--ink); font:inherit; }
.input-unit { position:relative; }
.input-unit input { padding-right:55px; }
.input-unit span { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:13px; }
.primary { width:100%; min-height:52px; padding:0 18px; display:flex; align-items:center; justify-content:space-between; border:0; border-radius:6px; background:var(--green); color:white; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; }
.primary:disabled { opacity:.6; cursor:wait; }
.status { min-height:21px; margin:14px 0 9px; color:var(--muted); font-size:13px; }
.status.error { color:var(--error); }
.result { margin-top:18px; padding:24px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:28px; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(90px,1fr)); gap:16px; }
.metrics div { display:flex; flex-direction:column; gap:5px; }
.metrics span { color:var(--muted); font-size:12px; }
.metrics strong { font-size:17px; }
.download { width:auto; min-width:190px; gap:24px; }
footer { padding:22px 0 28px; display:flex; justify-content:space-between; border-top:1px solid var(--line); }
footer a { color:var(--green); text-decoration:none; font-weight:700; }
:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
@media(max-width:800px){ .editor{grid-template-columns:1fr}.preview-panel img{height:320px}.result{grid-template-columns:1fr}.download{width:100%} }
@media(max-width:560px){ .site-header{min-height:70px}.hero{padding-top:44px}.preview-panel img{height:245px}.metrics{grid-template-columns:repeat(2,1fr)}footer{flex-direction:column;gap:9px} }
