*{box-sizing:border-box}html{font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:#171717;background:#f4f4f2}body{margin:0}.app-shell{min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid #e8e8e4;display:flex;align-items:center;padding:0 38px;gap:28px}.brand{font-size:19px;font-weight:800;display:flex;align-items:center;gap:11px;white-space:nowrap}.brand-mark{width:32px;height:32px;display:grid;place-items:center;background:#76b900;color:white;font-size:17px;border-radius:7px}.topbar-note{font-size:14px;color:#828282;flex:1}.button{border:0;border-radius:9px;padding:13px 19px;font:700 15px/1.2 Inter,"Microsoft YaHei",sans-serif;cursor:pointer;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.button-dark{background:#171717;color:white}.button-dark:hover{background:#333}.button-light{background:#f0f0ee;color:#262626}.button-light:hover{background:#e5e5e1}.top-download{padding:11px 17px}.workspace{display:grid;grid-template-columns:minmax(355px,440px) minmax(0,1fr);min-height:calc(100vh - 76px)}.editor{background:white;border-right:1px solid #e7e7e3;padding:32px 35px 28px;max-height:calc(100vh - 76px);overflow:auto}.editor-head h1{margin:8px 0 10px;font-size:18px;letter-spacing:-.04em;line-height:1.25;white-space:nowrap}.editor-head p{margin:0;color:#777;font-size:14px;line-height:1.7}.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:800;color:#a0a0a0}.preset-row{padding:29px 0 24px;border-bottom:1px solid #ededeb}.section-label{font-size:14px;font-weight:800}.preset-buttons{display:flex;gap:8px;margin-top:13px;flex-wrap:nowrap}.preset{border:1px solid #ddd;background:#fff;border-radius:7px;padding:8px 10px;color:#545454;font:600 13px/1.2 Inter,"Microsoft YaHei",sans-serif;cursor:pointer;white-space:nowrap}.preset:hover,.preset.active{border-color:#202020;color:#202020;background:#f5f5f3}.fields{padding:25px 0 0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.section-hint{color:#aaa;font-size:12px}.fields label:not(.upload-card){display:block;font-size:13px;font-weight:700;margin:16px 0 7px}.fields input:not([type=file]),.fields textarea{width:100%;border:1px solid #dddeda;border-radius:8px;background:#fafafa;padding:11px 12px;font:14px/1.55 Inter,"Microsoft YaHei",sans-serif;color:#222;outline:none;resize:vertical;min-height:44px}.fields textarea{font-family:inherit}.fields input:focus,.fields textarea:focus{border-color:#525252;background:#fff;box-shadow:0 0 0 3px #eeeeeb}.image-fields{border-top:1px solid #ededeb;margin-top:25px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.upload-card{border:1px dashed #c8c9c4;border-radius:9px;min-height:114px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:pointer;gap:5px;background:#fbfbfa}.upload-card:hover{border-color:#323232;background:#f5f5f2}.upload-card.accent{border-color:#9cae8a;background:#f5f8f2}.upload-icon{font-size:24px;line-height:1}.upload-card strong{font-size:13px}.upload-card small{font-size:11px;color:#8a8a8a}.image-actions{display:flex;justify-content:space-between;gap:8px;margin-top:10px}.text-button{border:0;background:none;color:#777;font:12px Inter,"Microsoft YaHei",sans-serif;cursor:pointer;padding:4px 0}.text-button:hover{text-decoration:underline;color:#161616}.editor-actions{display:flex;gap:10px;margin-top:28px}.editor-actions .button:first-child{flex:1}.editor-foot{font-size:11px;color:#999;line-height:1.6;margin:17px 0 0}.preview-pane{min-width:0;padding:28px clamp(25px,4vw,70px) 25px;display:flex;flex-direction:column;align-items:center}.preview-toolbar,.canvas-wrap,.preview-bottom{width:min(100%,1050px)}.preview-toolbar{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.preview-toolbar h2{font-size:21px;margin:5px 0 0}.preview-size{font-size:12px;color:#999}.canvas-wrap{background:white;box-shadow:0 12px 45px #10101013,0 1px 4px #10101012;padding:0;line-height:0}.canvas-wrap canvas{width:100%;height:auto;display:block}.preview-bottom{display:flex;justify-content:space-between;color:#999;font-size:12px;margin-top:17px}.status-dot{display:inline-block;background:#64a950;width:7px;height:7px;border-radius:50%;margin-right:7px}@media(max-width:950px){.workspace{grid-template-columns:1fr}.editor{max-height:none;border-right:0;border-bottom:1px solid #e7e7e3;padding:28px clamp(20px,5vw,50px)}.preview-pane{padding:30px clamp(20px,5vw,50px)}.topbar{padding:0 20px}.topbar-note{display:none}.top-download{margin-left:auto}}@media(max-width:540px){.topbar{height:64px}.top-download{font-size:13px;padding:9px 11px}.brand{font-size:16px}.workspace{min-height:calc(100vh - 64px)}.editor-head h1{font-size:14px}.preset-buttons{gap:5px}.preset{font-size:12px;padding:7px 6px}.preview-toolbar{margin-bottom:14px}.preview-toolbar h2{font-size:18px}.preview-bottom{font-size:11px}.editor-actions{flex-direction:column}}



/* Keep the complete preview visible beside the independently scrolling editor. */
@media (min-width:951px){
  body{overflow:hidden}
  .workspace{height:calc(100dvh - 76px);min-height:0}
  .editor{max-height:none;min-height:0}
  .preview-pane{height:100%;min-height:0;overflow:hidden}
  .preview-toolbar,.canvas-wrap,.preview-bottom{width:min(100%,calc(125dvh - 285px),1050px)}
}

.canvas-wrap{position:relative}
.preview-hotspots{position:absolute;inset:0;pointer-events:none}
.preview-spot{position:absolute;display:block;border:2px solid transparent;border-radius:4px;background:transparent;padding:0;cursor:text;pointer-events:auto;touch-action:manipulation}
.preview-spot:hover,.preview-spot:focus-visible{border-color:#76b900;background:#76b90014;outline:none}
.preview-spot::after{content:attr(data-hint);position:absolute;top:4px;right:4px;padding:5px 8px;border-radius:5px;background:#171717;color:white;font:600 12px/1.2 Inter,"Microsoft YaHei",sans-serif;white-space:nowrap;opacity:0;pointer-events:none}
.preview-spot:hover::after,.preview-spot:focus-visible::after{opacity:1}
.image-spot{cursor:pointer}
.image-spot::after{top:50%;right:50%;transform:translate(50%,-50%);padding:9px 12px}
.inline-editor[hidden],.inline-editor input[hidden],.inline-editor textarea[hidden]{display:none!important}
.inline-editor{position:fixed;z-index:20;width:min(360px,calc(100vw - 32px));padding:15px;background:white;border:1px solid #d9ddd4;border-radius:11px;box-shadow:0 18px 50px #0003}
.inline-editor-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.inline-editor-head label{font-size:14px;font-weight:800}
.inline-editor-head button{border:0;background:#f1f1ef;color:#444;width:26px;height:26px;border-radius:6px;font:20px/1 Inter,sans-serif;cursor:pointer}
.inline-editor input,.inline-editor textarea{display:block;width:100%;border:1px solid #b9c6b0;border-radius:7px;padding:9px 10px;background:#fff;color:#222;font:14px/1.5 Inter,"Microsoft YaHei",sans-serif;resize:vertical;outline:none}
.inline-editor input:focus,.inline-editor textarea:focus{border-color:#76b900;box-shadow:0 0 0 3px #76b90022}
.inline-editor-tip{margin-top:8px;color:#888;font-size:11px}
