:root{font-family:"Microsoft YaHei","Segoe UI",sans-serif;color:#21302f;background:#f4f7f6;font-synthesis:none;letter-spacing:0}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,textarea,select{outline:none}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,[role=button]:focus-visible{outline:2px solid #0b887d;outline-offset:2px}
.topbar{height:70px;background:#fff;border-bottom:1px solid #dce5e3;display:flex;align-items:center;gap:28px;padding:0 24px}.brand{display:flex;align-items:center;gap:10px;min-width:215px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:#0b746c;color:#fff;font-weight:700;font-size:20px;border-radius:5px}.brand strong{display:block;font-size:15px;line-height:1.35}.brand small{display:block;font-size:9px;color:#81918e;line-height:1.35;font-weight:700}.project-name{border:0;border-bottom:1px solid transparent;background:transparent;padding:8px 2px;font-size:17px;font-weight:700;min-width:160px;max-width:320px;flex:1;color:#273332}.project-name:hover,.project-name:focus{border-color:#9dbcb5}.top-actions{display:flex;align-items:center;gap:9px}.quiet,.secondary,.primary,.text-command{border-radius:5px;min-height:37px;padding:0 14px;font-size:13px;font-weight:600;white-space:nowrap}.quiet{border:1px solid transparent;background:transparent;color:#546764}.quiet:hover{background:#eef4f2}.secondary{border:1px solid #c8d7d3;background:#fff;color:#1b665e}.secondary:hover{border-color:#0b887d;background:#f3faf8}.primary{border:1px solid #087970;background:#087970;color:#fff}.primary:hover{background:#05665f}.primary:disabled{background:#669f98}
.workspace{display:grid;grid-template-columns:242px minmax(380px,1fr) minmax(330px,420px);min-height:calc(100vh - 70px)}.sidebar{background:#f9fbfa;border-right:1px solid #dce5e3;padding:22px 14px}.section-heading{height:35px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;color:#5e716d;font-size:12px;font-weight:700}.cover-upload{margin:7px 4px 20px;border:1px dashed #b9cec8;border-radius:6px;background:#eff5f2;min-height:144px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;cursor:pointer}.cover-upload:hover{border-color:#0b887d}.cover-upload img{width:100%;height:144px;object-fit:contain;background:#e8eeec}.cover-placeholder{text-align:center;padding:20px;color:#47645e}.cover-placeholder .upload-symbol{font-size:25px;display:block;margin-bottom:8px;color:#0b887d}.cover-placeholder strong{display:block;font-size:13px}.cover-placeholder small{font-size:11px;color:#79928c;display:block;margin-top:6px}.cover-replace{position:absolute;right:7px;bottom:7px;background:#fff;border:1px solid #d7e3df;border-radius:4px;padding:5px 8px;color:#31584f;font-size:11px}.sidebar-divider{height:1px;background:#e1e8e5;margin:0 4px 17px}.icon-button{width:30px;height:30px;border:1px solid #cfddda;border-radius:5px;background:#fff;color:#206d64;font-size:22px;line-height:1;display:grid;place-items:center;padding:0}.icon-button:hover{border-color:#0b887d;background:#edf6f3}.step-list{display:flex;flex-direction:column;gap:4px;margin-top:6px}.step-item{width:100%;border:1px solid transparent;background:transparent;border-radius:5px;padding:11px 9px;text-align:left;display:flex;gap:11px;align-items:flex-start;color:#546661}.step-item:hover{background:#edf3f0}.step-item.active{background:#e2f2ed;border-color:#b8dcd2;color:#184c45}.step-number{font-size:12px;font-weight:800;color:#0c8175;min-width:25px;margin-top:2px}.step-copy{min-width:0}.step-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.step-copy small{display:block;font-size:11px;color:#84938f;margin-top:5px}.step-count{font-size:11px;color:#8c9c98;padding:16px 10px}
.editor{padding:29px clamp(20px,3vw,48px) 48px;min-width:0;max-width:1050px;width:100%;margin:auto}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}.eyebrow{color:#0a8578;font-size:11px;font-weight:800}.editor h1{font-size:23px;margin:5px 0 0}.step-tools{display:flex;gap:6px}.step-tools .icon-button{font-size:18px;color:#5a7069}.step-tools .danger{color:#b34d3e}.fields-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:15px}.field{display:flex;flex-direction:column;gap:8px;min-width:0;color:#52625f;font-size:12px;font-weight:700}.field input,.field textarea,.field select{width:100%;border:1px solid #cad8d4;border-radius:5px;background:#fff;color:#1d302b;padding:10px 11px;font-size:13px;font-weight:400}.field input,.field select{height:40px}.field textarea{resize:vertical;min-height:68px;line-height:1.55}.description-field{margin-top:16px}.subheading{margin:28px 0 13px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.subheading h2{font-size:15px;margin:0}.subheading span{font-size:11px;color:#8c9c97}.image-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.image-slot{border:1px solid #dae5e1;background:#fff;border-radius:6px;min-width:0;overflow:hidden}.slot-title{display:flex;gap:7px;align-items:center;padding:12px 11px 9px;font-size:12px;font-weight:700}.slot-index{display:grid;place-items:center;border-radius:3px;width:19px;height:19px;background:#e5f3ee;color:#0a7b70;font-size:10px}.slot-photo{margin:0 10px 10px;height:145px;border:1px dashed #c6d8d2;background:#f5f8f7;border-radius:4px;display:flex;align-items:center;justify-content:center;text-align:center;color:#829690;font-size:12px;cursor:pointer;overflow:hidden;position:relative}.slot-photo:hover{border-color:#0b887d}.slot-photo img{width:100%;height:100%;object-fit:contain}.slot-photo .upload-symbol{display:block;font-size:24px;color:#0a8d7f;margin-bottom:5px}.slot-help{font-size:11px;line-height:1.45;color:#78908a;padding:0 11px 13px;min-height:47px}.slot-photo .replace-hint{position:absolute;right:5px;bottom:5px;background:#fff;padding:3px 6px;border-radius:3px;color:#176d62;font-size:10px}.text-command{background:transparent;border:0;color:#0b7c70;padding:0 3px}.text-command:hover{text-decoration:underline}.hardware-list{display:flex;flex-direction:column;gap:8px}.hardware-empty{border:1px dashed #ccdcd5;border-radius:5px;padding:24px;text-align:center;color:#8b9a95;font-size:12px}.hardware-row{display:grid;grid-template-columns:60px minmax(0,1fr) 72px 30px;align-items:center;gap:10px;padding:8px;border:1px solid #dce6e2;background:#fff;border-radius:5px}.hardware-photo{height:52px;width:60px;border:1px dashed #bfcfc9;border-radius:3px;background:#f5f8f7;display:grid;place-items:center;color:#458276;cursor:pointer;overflow:hidden}.hardware-photo img{width:100%;height:100%;object-fit:cover}.hardware-row input{height:36px;border:1px solid #d5e0dc;border-radius:4px;padding:0 9px;font-size:12px;width:100%;min-width:0}.hardware-row .icon-button{width:28px;height:28px;font-size:18px;color:#ad5547}.editor-footer{display:flex;justify-content:flex-end;margin-top:32px}
.preview-panel{background:#fff;border-left:1px solid #dce5e3;padding:29px 22px;min-width:0}.preview-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}.preview-heading h2{font-size:18px;margin:5px 0 0}.preview-heading>span{font-size:11px;color:#91a29d}.canvas-wrap{margin-top:22px;background:#162a2b;aspect-ratio:16/9;width:100%;overflow:hidden}.canvas-wrap canvas{width:100%;height:100%;display:block}.playback{display:flex;align-items:center;gap:9px;margin-top:14px}.play-button{border:0;background:#e4f2ed;flex:none;font-size:14px;width:33px;height:33px}.playback input{min-width:0;flex:1;accent-color:#07877b}.playback span{color:#71847e;font-size:11px;white-space:nowrap}.preview-status{min-height:53px;color:#667a74;font-size:12px;line-height:1.5;padding-top:16px}.preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.export-status{font-size:12px;line-height:1.5;color:#0a776c;min-height:38px;padding-top:14px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#243c39;color:#fff;padding:11px 18px;border-radius:5px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:10}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1250px){.workspace{grid-template-columns:210px minmax(370px,1fr)}.preview-panel{grid-column:2;border-left:0;border-top:1px solid #dce5e3}.sidebar{grid-row:1 / span 2}.preview-panel .canvas-wrap{max-width:680px}.preview-actions{max-width:680px}}
@media(max-width:760px){.topbar{height:auto;min-height:64px;padding:12px 15px;gap:10px;flex-wrap:wrap}.brand{min-width:0;margin-right:auto}.brand small{display:none}.project-name{order:3;flex-basis:100%;max-width:none}.top-actions{gap:3px}.top-actions button{padding:0 9px;font-size:11px;min-height:32px}.workspace{display:flex;flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid #dce5e3;padding:12px 14px}.cover-upload{min-height:92px;margin-bottom:12px}.cover-upload img{height:92px}.step-list{flex-direction:row;overflow:auto;padding-bottom:5px}.step-item{flex:0 0 160px}.sidebar-divider{margin-bottom:9px}.step-count{padding:5px 10px}.editor{padding:20px 15px 30px}.image-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.slot-photo{height:102px;margin:0 6px 6px}.slot-title{font-size:11px;padding:8px 6px}.slot-help{font-size:10px;padding:0 6px 8px;min-height:55px}.preview-panel{padding:22px 15px}.preview-panel .canvas-wrap{max-width:none}.editor-heading{margin-bottom:17px}.editor h1{font-size:19px}}
@media(max-width:480px){.brand strong{font-size:13px}.brand-mark{width:31px;height:31px;font-size:17px}.top-actions button.quiet{font-size:11px;padding:0 5px}.top-actions button.primary{padding:0 8px}.image-slots{grid-template-columns:1fr}.image-slot{display:grid;grid-template-columns:105px 1fr;align-items:center}.slot-title{grid-column:1 / -1}.slot-photo{height:90px}.slot-help{min-height:0}.fields-row{grid-template-columns:minmax(0,1fr) 96px}.hardware-row{grid-template-columns:48px minmax(0,1fr) 55px 25px;gap:5px;padding:5px}.hardware-photo{width:48px}.preview-actions{grid-template-columns:1fr 1fr}}
.part-editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.part-editor{min-width:0}.part-editor+.part-editor{border-left:1px solid #d7e2de;padding-left:24px}.part-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px;font-size:15px;font-weight:700}.part-heading .step-number{font-size:12px;min-width:0}.part-photo{height:190px;width:100%;border:1px dashed #b9cec8;border-radius:5px;background:#f9fbfa;display:grid;place-items:center;overflow:hidden;cursor:pointer;color:#608078;text-align:center;font-size:13px}.part-photo:hover{border-color:#0b887d}.part-photo img{height:100%;width:100%;object-fit:contain}.part-photo strong{display:block;font-size:25px;color:#0b887d}.part-name{margin-top:12px}.screws-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:22px 0 12px;font-size:12px;font-weight:700;color:#52625f}.screws-heading .text-command{font-size:12px;min-height:28px}.no-screws{display:flex;align-items:center;gap:7px;font-size:12px;color:#5e736b;margin:9px 0 14px}.no-screws input{accent-color:#0b887d}.screw-list{display:flex;flex-direction:column;gap:8px}.screw-row{display:grid;grid-template-columns:48px minmax(0,1fr) 56px 27px;align-items:center;gap:6px}.screw-photo{width:48px;height:45px;border:1px dashed #becfc8;border-radius:4px;background:#fff;display:grid;place-items:center;cursor:pointer;color:#128375;font-size:12px;overflow:hidden}.screw-photo img{width:100%;height:100%;object-fit:cover}.screw-row input{min-width:0;width:100%;height:36px;border:1px solid #cfddd8;border-radius:4px;padding:0 7px;background:#fff;font-size:12px}.screw-row .icon-button{height:27px;width:27px;font-size:17px;color:#a84f42}.screw-labels{display:grid;grid-template-columns:48px minmax(0,1fr) 56px 27px;gap:6px;font-size:10px;color:#82928c;margin-bottom:5px}.legacy-assets{border-top:1px solid #dbe5e0;margin-top:25px;padding-top:16px}.legacy-assets h2{font-size:14px;margin:0 0 10px}.legacy-item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dbe5e0;border-radius:5px;padding:9px;margin-top:7px;font-size:12px}.legacy-item img{width:50px;height:45px;object-fit:contain}.legacy-item strong{flex:1;min-width:0}.legacy-item button{border:1px solid #cadad3;border-radius:4px;background:#fff;padding:6px;color:#176f64;font-size:11px;white-space:nowrap}
@media(max-width:760px){.part-editors{gap:14px}.part-editor+.part-editor{padding-left:14px}.part-photo{height:135px}.screw-row{grid-template-columns:38px minmax(0,1fr) 48px 24px;gap:4px}.screw-photo{width:38px}.screw-labels{grid-template-columns:38px minmax(0,1fr) 48px 24px;gap:4px}}
@media(max-width:580px){.part-editors{grid-template-columns:1fr;gap:28px}.part-editor+.part-editor{border-left:0;border-top:1px solid #d7e2de;padding:24px 0 0}.part-photo{height:175px}.screw-row{grid-template-columns:48px minmax(0,1fr) 56px 27px;gap:6px}.screw-photo{width:48px}.screw-labels{grid-template-columns:48px minmax(0,1fr) 56px 27px;gap:6px}.legacy-item{flex-wrap:wrap}}
