:root{font-family:"Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif;color:#203047;background:#eef5ff;font-size:14px}*{box-sizing:border-box}body{margin:0;min-width:1040px}.hidden{display:none!important}button,input,select,textarea{font:inherit}.topbar{height:68px;background:#fff;display:flex;align-items:center;padding:0 24px;border-bottom:1px solid #dce7f5;box-shadow:0 2px 10px #3068a00b;position:relative;z-index:4}.brand{display:flex;align-items:center;gap:10px;width:290px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#347ff0,#54b7ff);display:grid;place-items:center;color:white;font-size:20px;font-weight:800}.brand div{display:flex;flex-direction:column}.brand strong{font-size:17px}.brand small{color:#8795a9;margin-top:2px}.topbar nav{display:flex;align-self:stretch;gap:4px}.nav-btn{border:0;background:transparent;padding:0 18px;color:#65748a;cursor:pointer;border-bottom:3px solid transparent}.nav-btn.active{color:#2374e8;border-color:#3988f5;font-weight:700}.license-box{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:12px;color:#65748a}.link-btn{border:0;background:transparent;color:#2378e8;cursor:pointer;padding:0}.library-view,.simple-view{padding:22px 28px 70px;max-width:1500px;margin:auto}.library-head,.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.library-head h1,.section-head h2{margin:0 0 5px}.library-head p{margin:0;color:#7a899d}.library-head input,.section-head input{width:240px;border:1px solid #d7e2ef;padding:10px 13px;border-radius:8px;background:#fff}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.template-card{background:#fff;border:1px solid #dfe8f3;border-radius:10px;padding:10px;cursor:default;min-height:190px;box-shadow:0 3px 10px #426c9510;position:relative}.template-card:hover{border-color:#83b7fa;box-shadow:0 5px 16px #3979bb20}.template-card.selected{outline:2px solid #4b96f7}.template-thumb{height:125px;background:#f8fbff;border-radius:7px;display:grid;place-items:center;overflow:hidden;position:relative}.template-thumb .mini-paper{background:white;border:1px solid #aab6c4;position:relative;box-shadow:0 2px 5px #0002}.mini-el{position:absolute;border-color:#293442!important;color:#293442;font-size:3px;overflow:hidden}.template-meta{margin-top:9px}.template-meta strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-meta small{color:#8a98aa}.new-card .template-thumb{border:2px dashed #d2dce9;background:#f7f9fc;color:#9aa7b6;font-size:35px}.card-menu{position:absolute;right:8px;bottom:8px;border:0;background:#eef5ff;color:#2876df;border-radius:6px;padding:4px 7px;cursor:pointer}.recommended{margin-top:28px;background:#fff;border-radius:12px;padding:18px}.section-head span{color:#8c9aad;margin-left:10px}.empty-state{grid-column:1/-1;background:#f7faff;border:1px dashed #cbd9ea;border-radius:10px;padding:34px;text-align:center;color:#7d8ca0}.editor-view{height:calc(100vh - 68px);padding:12px 18px 18px}.editor-head{height:48px;background:#fff;border-radius:10px 10px 0 0;display:flex;align-items:center;padding:0 12px;gap:12px;border-bottom:1px solid #e1e9f3}.name-input{border:0;background:#f2f5f9;padding:8px 12px;border-radius:6px;width:260px;font-weight:600}.size-badge{color:#6f7e91;background:#f3f7fb;padding:6px 10px;border-radius:15px}.head-actions{margin-left:auto;display:flex;gap:8px}.soft-btn,.primary-btn{border-radius:7px;padding:9px 15px;cursor:pointer}.soft-btn{background:#fff;border:1px solid #cfdceb;color:#35516f}.primary-btn{background:#3387f5;border:1px solid #3387f5;color:#fff}.primary-btn:disabled,.soft-btn:disabled{opacity:.45;cursor:not-allowed}.editor-shell{display:grid;grid-template-columns:minmax(700px,1fr) 310px;height:calc(100% - 48px);gap:12px}.workspace{background:#dfeafa;display:flex;flex-direction:column;min-width:0}.toolbar{height:48px;background:#fff;display:flex;align-items:center;gap:5px;padding:6px 10px;border-bottom:1px solid #dce6f2}.toolbar button{border:1px solid transparent;background:#f5f8fc;border-radius:5px;padding:7px 9px;cursor:pointer;color:#34475c}.toolbar button:hover{border-color:#91baf0;background:#eaf3ff}.toolbar span{width:1px;height:24px;background:#dce5ef;margin:0 3px}.danger-tool{color:#c83c47!important}.property-bar{height:44px;background:#fff;display:flex;align-items:center;gap:8px;padding:6px 10px;border-bottom:1px solid #dbe5f1;overflow-x:auto}.property-bar label{display:flex;align-items:center;gap:4px;white-space:nowrap;color:#617187}.property-bar input,.property-bar select{width:66px;border:1px solid #d4dfec;border-radius:5px;padding:5px}.property-bar .text-value{width:230px}.stage{flex:1;overflow:auto;display:grid;place-items:center;padding:34px;background-color:#e9f1fb;background-image:linear-gradient(45deg,#dbe6f3 25%,transparent 25%),linear-gradient(-45deg,#dbe6f3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dbe6f3 75%),linear-gradient(-45deg,transparent 75%,#dbe6f3 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.paper{background:#fff;box-shadow:0 5px 18px #3a527033;position:relative;flex:none;overflow:hidden}.canvas-el{position:absolute;cursor:move;user-select:none}.canvas-el.selected:not(.line-el){outline:2px dashed #3590ff}.canvas-el.text-el{white-space:pre-wrap;line-height:1.25;overflow:hidden;color:#111}.canvas-el.rect-el{border-style:solid}.canvas-el.table-el{display:grid;border-style:solid}.canvas-el.table-el i{border-right:inherit;border-bottom:inherit;min-width:0;min-height:0}.canvas-el.image-el img{width:100%;height:100%;object-fit:contain;display:block}.canvas-el.barcode-el{border:1px solid #222;background:#fff;padding:4px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.barcode-note{color:#e33636;text-align:center;font-size:12px;font-weight:600;line-height:1.15}.bars{height:55%;background:repeating-linear-gradient(90deg,#111 0,#111 3px,#fff 3px,#fff 6px,#111 6px,#111 8px,#fff 8px,#fff 12px)}.barcode-foot{display:flex;justify-content:space-between;font-size:9px;font-weight:700}.resize-handle{position:absolute;width:11px;height:11px;border:2px solid #2687ff;background:#fff;border-radius:50%;right:-7px;bottom:-7px;cursor:nwse-resize}.line-el{height:0!important;transform-origin:0 0;cursor:move;border-top-style:solid}.line-el.selected{box-shadow:0 0 0 1px #3590ff}.line-handle{position:absolute;width:12px;height:12px;background:#fff;border:2px solid #2187ff;border-radius:50%;top:-7px;cursor:crosshair}.line-handle.start{left:-6px}.line-handle.end{right:-6px}.right-panel{overflow:auto;padding-top:12px}.panel-card{background:#fff;border-radius:10px;padding:14px;margin-bottom:12px;border:1px solid #dce7f3}.panel-card h3{margin:0 0 12px}.drop-zone{border:1.5px dashed #b7c8dc;border-radius:8px;min-height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:#f9fbfe;cursor:pointer;text-align:center}.drop-zone input{display:none}.drop-zone b{font-size:25px;color:#7c8da3}.drop-zone small{color:#8795a8;line-height:1.6}.drop-zone.drag{border-color:#3387f5;background:#edf6ff}.upload-list{margin-top:10px;display:flex;flex-direction:column;gap:7px}.upload-item{background:#f6f9fd;border-radius:6px;padding:8px;display:grid;grid-template-columns:1fr auto;gap:4px}.upload-item b{font-size:12px;overflow:hidden;text-overflow:ellipsis}.upload-item small{color:#77879b}.upload-item button{grid-row:1/3;grid-column:2;border:0;background:none;color:#d74c54;cursor:pointer}.page-total{text-align:right;color:#65768b;margin-top:8px;font-size:12px}.output-card{display:flex;flex-direction:column;gap:9px}.wide{width:100%}.output-path{margin-top:5px;display:grid;grid-template-columns:1fr auto;gap:5px}.output-path code{grid-column:1/-1;white-space:normal;word-break:break-all;font-size:11px;color:#53647a}.update-pill{position:fixed;right:18px;bottom:14px;border:1px solid #cfe0f4;background:#fff;color:#6b7d93;border-radius:18px;padding:7px 13px}.settings-card{background:#fff;padding:20px;border-radius:10px;margin:14px 0;max-width:700px}.settings-card code{display:block;margin:10px 0;word-break:break-all}.modal-mask{position:fixed;inset:0;background:#15243788;display:grid;place-items:center;z-index:20}.modal{width:min(620px,90vw);max-height:84vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 20px 60px #0004}.modal h2{margin:0;padding:18px 20px;border-bottom:1px solid #e4eaf2;font-size:18px}.modal-body{padding:18px 20px}.modal-actions{padding:14px 20px;border-top:1px solid #e4eaf2;display:flex;justify-content:flex-end;gap:9px}.form-grid{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #ccd9e7;border-radius:6px;padding:9px;width:100%}.icon-dialog{width:min(900px,92vw)}.category-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.category-tabs button{border:1px solid #d6e0ec;background:#fff;border-radius:16px;padding:5px 10px;cursor:pointer}.category-tabs button.active{background:#3387f5;color:#fff;border-color:#3387f5}.icon-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;max-height:470px;overflow:auto}.icon-choice{border:1px solid #e0e7ef;background:#fff;border-radius:7px;height:95px;padding:6px;cursor:pointer}.icon-choice img{width:100%;height:100%;object-fit:contain}.warning-list{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow:auto}.warning-choice{border:1px solid #dfe7f0;border-radius:8px;padding:11px;cursor:pointer}.warning-choice:hover{border-color:#5d9ef1}.warning-choice strong{display:block}.warning-choice em{font-style:normal;color:#2176de;display:block;margin:4px 0}.warning-choice p{margin:0;color:#4d5d70;font-size:12px;white-space:pre-wrap}.busy{position:fixed;inset:0;background:#fffE;z-index:50;display:flex;align-items:center;justify-content:center;flex-direction:column}.spinner{width:44px;height:44px;border:4px solid #dceafb;border-top-color:#3287f5;border-radius:50%;animation:spin .8s linear infinite}.busy p{color:#738398}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:60;background:#26384d;color:#fff;padding:11px 18px;border-radius:7px;box-shadow:0 5px 20px #0003}.toast.error{background:#b83b45}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1200px){.editor-shell{grid-template-columns:minmax(650px,1fr) 290px}.toolbar button{padding:7px 6px}.brand{width:240px}.icon-grid{grid-template-columns:repeat(5,1fr)}}
.library-tools,.server-row{display:flex;gap:8px;align-items:center}.server-row input{width:360px;border:1px solid #d7e2ef;padding:10px 13px;border-radius:8px;background:#fff}.admin-grid{display:grid;grid-template-columns:360px minmax(420px,1fr);gap:16px}.admin-grid .settings-card{max-width:none;margin:0}.generated-code{font-size:22px;font-weight:800;letter-spacing:2px;color:#2174dc;margin-top:14px}.admin-list{max-height:390px;overflow:auto}.admin-row{display:grid;grid-template-columns:1fr auto;gap:5px;border-bottom:1px solid #e5ebf2;padding:9px 0}.admin-row small{color:#77879a}.admin-row button{align-self:center}.settings-card select{border:1px solid #d7e2ef;border-radius:7px;padding:9px;margin-right:8px}
.canvas-el.text-el{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.canvas-el.warning-el{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.25;overflow:hidden;color:#111}.canvas-el.symbol-el img{width:100%;height:100%;object-fit:contain;display:block}
.snap-guide{position:absolute;width:13px;height:13px;border:2px solid #1687ff;background:#fff9;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 3px #1687ff33;pointer-events:none;z-index:20}
.structure-lock{display:flex;align-items:center;gap:5px;padding:6px 8px;border-radius:5px;color:#43556b;white-space:nowrap;cursor:pointer}.structure-lock:has(input:checked){background:#e7f1ff;color:#176dce}.structure-lock input{margin:0}.rect-el,.line-el{pointer-events:none}.rect-hit,.rect-resize-handle,.line-hit,.line-handle{pointer-events:auto}.rect-hit{position:absolute;display:block}.rect-hit.top,.rect-hit.bottom{left:-5px;right:-5px;height:10px}.rect-hit.left,.rect-hit.right{top:-5px;bottom:-5px;width:10px}.rect-hit.top{top:-5px}.rect-hit.right{right:-5px}.rect-hit.bottom{bottom:-5px}.rect-hit.left{left:-5px}.rect-resize-handle{position:absolute;width:11px;height:11px;border:2px solid #2687ff;background:#fff;border-radius:50%;z-index:3}.rect-resize-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.rect-resize-handle.n{left:50%;top:-7px;transform:translateX(-50%);cursor:ns-resize}.rect-resize-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.rect-resize-handle.e{right:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}.rect-resize-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.rect-resize-handle.s{left:50%;bottom:-7px;transform:translateX(-50%);cursor:ns-resize}.rect-resize-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.rect-resize-handle.w{left:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}.line-hit{position:absolute;display:block;left:0;top:-6px;width:100%;height:12px;cursor:move;z-index:1}.line-handle{z-index:2}.structure-locked .rect-hit,.structure-locked .rect-resize-handle,.structure-locked .line-hit,.structure-locked .line-handle{pointer-events:none}.structure-locked{cursor:default}
.icon-dialog{height:min(680px,84vh);display:flex;flex-direction:column;overflow:hidden}.icon-dialog .modal-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.icon-dialog .icon-grid{flex:1;min-height:0;max-height:none}.icon-dialog .modal-actions{flex:none}
.canvas-el.text-el{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.text-content{display:block;width:100%;height:100%;overflow:hidden;white-space:inherit;overflow-wrap:inherit;word-break:inherit}.text-content[contenteditable]{user-select:text;cursor:text;outline:none}
.canvas-el.warning-el .text-content[contenteditable]{user-select:text;cursor:text;outline:none}
.text-width-handle{position:absolute;width:11px;height:11px;border:2px solid #2687ff;background:#fff;border-radius:50%;top:50%;transform:translateY(-50%);cursor:ew-resize;z-index:4}.text-width-handle.left{left:-7px}.text-width-handle.right{right:-7px}
.stage{position:relative}.zoom-control{position:absolute;right:12px;bottom:12px;justify-self:end;align-self:end;z-index:8;display:flex;flex-direction:column;align-items:center;gap:4px;background:#ffffffea;border:1px solid #cddff3;border-radius:8px;padding:6px 8px;box-shadow:0 2px 8px #2f57821f;font-size:12px;color:#536a83}.zoom-control button{border:0;background:#eaf3ff;color:#2476d7;border-radius:5px;padding:4px 7px;cursor:pointer}.zoom-control button:disabled{opacity:.45;cursor:default}

.paper{overflow:hidden}.canvas-el.barcode-el{border:0;background:transparent;padding:0;display:block;overflow:visible}.barcode-content{width:100%;height:100%;border:1.4px solid #1b2430;background:#fff;padding:3px 6px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.barcode-note{font-size:13px;font-weight:700;letter-spacing:.15px}.bars{height:56%;margin:1px 8px 0;background:repeating-linear-gradient(90deg,#10151c 0,#10151c 2px,#fff 2px,#fff 4px,#10151c 4px,#10151c 7px,#fff 7px,#fff 9px,#10151c 9px,#10151c 10px,#fff 10px,#fff 14px)}.barcode-foot{padding:0 7px;font-size:10px;letter-spacing:.15px}
.barcode-placeholder-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.barcode-resize-handle{position:absolute;width:12px;height:12px;border:2px solid #2687ff;background:#fff;border-radius:50%;z-index:5}.barcode-resize-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.barcode-resize-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.barcode-resize-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.barcode-resize-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}
.text-resize-handle{position:absolute;width:11px;height:11px;border:2px solid #2687ff;background:#fff;border-radius:50%;z-index:5}.text-resize-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.text-resize-handle.n{left:50%;top:-7px;transform:translateX(-50%);cursor:ns-resize}.text-resize-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.text-resize-handle.e{right:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}.text-resize-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.text-resize-handle.s{left:50%;bottom:-7px;transform:translateX(-50%);cursor:ns-resize}.text-resize-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.text-resize-handle.w{left:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.packaging-resize-handle{position:absolute;width:11px;height:11px;border:2px solid #2687ff;background:#fff;border-radius:50%;z-index:5}.packaging-resize-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.packaging-resize-handle.n{left:50%;top:-7px;transform:translateX(-50%);cursor:ns-resize}.packaging-resize-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.packaging-resize-handle.e{right:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}.packaging-resize-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.packaging-resize-handle.s{left:50%;bottom:-7px;transform:translateX(-50%);cursor:ns-resize}.packaging-resize-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.packaging-resize-handle.w{left:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.packaging-config{display:grid;gap:16px}.config-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.config-row>b{width:82px}.config-row label{white-space:nowrap}.preview-row{align-items:flex-start}.preview-row>#packagingPreview{flex:1;min-width:360px}.packaging-preview{border-left:1px solid #333;border-top:1px solid #333}.packaging-preview-line{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}.packaging-preview select{min-width:0;border:0;border-right:1px solid #333;border-bottom:1px solid #333;border-radius:0;text-align:center;padding:7px;background:#fff}.packaging-preview-fixed{border-right:1px solid #333;border-bottom:1px solid #333;text-align:center;padding:6px}.packaging-preview.separated .packaging-preview-fixed{border:0;margin-left:-1px}.packaging-preview.bold{font-weight:700}.packaging-preview.bold,.packaging-preview.bold select{border-width:2px;font-weight:700}.packaging-el{overflow:visible}.packaging-table{width:100%;height:100%;display:grid;grid-auto-rows:1fr;border-style:solid;border-color:#222;border-right:0;border-bottom:0}.packaging-table>span{border-style:solid;border-color:#222;border-left:0;border-top:0;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap}.packaging-fixed{grid-column:1/-1}.packaging-separated{height:25%;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;overflow:hidden}
.packaging-preview.separated{border:0}.packaging-preview.separated .packaging-preview-line{border-left:1px solid #333}.packaging-preview.separated .packaging-preview-line:first-child{border-top:1px solid #333}.packaging-preview.separated.bold .packaging-preview-line{border-left-width:2px}.packaging-preview.separated.bold .packaging-preview-line:first-child{border-top-width:2px}
.icon-hover-preview{position:fixed;z-index:45;padding:8px;background:#fff;border:2px solid #3387f5;border-radius:9px;box-shadow:0 10px 30px #183c6b4d;pointer-events:none}.icon-hover-preview img{display:block;width:100%;height:100%;object-fit:contain}
.format-toggle{border:1px solid #c8d6e8;background:#fff;color:#465a72;border-radius:6px;padding:6px 13px;cursor:pointer}.format-toggle.bold{font-weight:800}.format-toggle.italic{font-style:italic}.format-toggle.underline{text-decoration:underline}.format-toggle.active{background:#2f82f4;border-color:#2f82f4;color:#fff;box-shadow:0 0 0 2px #b9d8ff}
.text-el.text-placeholder::before{content:"文字";color:#9aa6b4;font-style:normal;font-weight:400;text-decoration:none;pointer-events:none}.size-shortcuts{margin-top:18px;padding-top:14px;border-top:1px solid #e1e8f1}.size-shortcuts>span{display:block;margin-bottom:9px;color:#65758a}.size-shortcuts>div{display:flex;flex-wrap:wrap;gap:8px}.size-shortcut{border:1px solid #bcd2ee;background:#f3f8ff;color:#286fc7;border-radius:16px;padding:6px 12px;cursor:pointer}.size-shortcut:hover{background:#dfedff;border-color:#6ba5ed}
.toolbar{height:68px}.structure-locks{display:flex;flex-direction:column;gap:1px;align-self:stretch;justify-content:center}.structure-locks .structure-lock{padding:1px 6px;font-size:12px}.text-el.structure-locked,.warning-el.structure-locked{pointer-events:none}.canvas-el.selected{z-index:30}.property-bar input[type="number"]::-webkit-inner-spin-button{opacity:1;display:block;width:18px;height:24px}.zoom-control button{font-weight:700;background:#2f84f4;color:#fff;border:1px solid #176dd5;box-shadow:0 2px 6px #176dd544;padding:5px 9px}
.modal-mask{z-index:100}.icon-hover-preview{z-index:110}.busy{z-index:200}.toast{z-index:210}
.safe-area-toggle{display:flex;align-items:center;gap:4px;white-space:nowrap;color:#53667d;font-size:12px;cursor:pointer}.safe-area-toggle input{margin:0}.safe-area-guide{position:absolute;border:1px dashed #ef5252;pointer-events:none;z-index:25}
.icon-grid{gap:6px;align-content:start;grid-auto-rows:92px}.icon-choice{height:92px;padding:4px}.icon-choice img{object-position:center center}.packaging-table,.packaging-separated{font-family:Arial,Helvetica,sans-serif}
.license-box>div{display:flex;gap:10px}.payment-qr{text-align:center}.payment-qr img{display:block;width:260px;height:260px;margin:0 auto 12px}.payment-qr strong{font-size:18px}.payment-qr p{color:#6f7e91}

/* 2026 视觉系统：科技感、跨境电商与统一交互 */
:root{--ink:#10233f;--muted:#6f819b;--line:#dce7f4;--panel:#fff;--blue:#1677ff;--blue-2:#36a7ff;--cyan:#31d5da;--violet:#7868ff;--shadow:0 12px 34px rgba(33,75,126,.10);background:#f1f6fd;color:var(--ink)}
body{background:radial-gradient(circle at 8% -10%,rgba(49,213,218,.13),transparent 28%),radial-gradient(circle at 92% 0,rgba(120,104,255,.11),transparent 25%),#f2f7fd;color:var(--ink)}
button,input,select,textarea{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(22,119,255,.16);border-color:var(--blue)!important}
.topbar{height:76px;padding:0 26px;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(190,209,232,.7);box-shadow:0 8px 28px rgba(37,74,117,.07)}
.brand{width:310px;gap:12px}.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(140deg,#135bea 0%,#14a4ff 58%,#37d7cf 100%);box-shadow:0 8px 18px rgba(22,119,255,.28),inset 0 1px 0 #ffffff70;font-size:22px}.brand strong{font-size:18px;letter-spacing:.3px;color:#102542}.brand small{font-size:11px;letter-spacing:.8px;color:#7b8da6}
.topbar nav{align-self:center;height:44px;padding:4px;background:#f2f6fb;border:1px solid #e5edf7;border-radius:14px;gap:2px}.nav-btn{height:34px;padding:0 17px;border:0!important;border-radius:10px;color:#63758e;font-weight:600}.nav-btn:hover{background:#e8f1ff;color:#155fc9}.nav-btn.active{background:#fff;color:#126df0;box-shadow:0 4px 12px rgba(28,94,179,.12)}
.license-box{min-width:280px;padding:8px 11px 8px 14px;border:1px solid #dce8f6;border-radius:14px;background:linear-gradient(120deg,#f6fbff,#f5f3ff);box-shadow:0 5px 16px rgba(44,87,139,.08);gap:6px}.license-box>span{font-weight:800;color:#183a66}.license-box>div{gap:13px}.license-box .link-btn{font-size:12px;font-weight:700}
.link-btn{color:#146fe7;font-weight:650}.link-btn:hover{color:#0b56b9;text-decoration:underline}.primary-btn{border:0;background:linear-gradient(135deg,#126bf3,#249cff);box-shadow:0 7px 16px rgba(22,119,255,.22);font-weight:700}.primary-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 22px rgba(22,119,255,.28)}.soft-btn{border-color:#cfdded;color:#294b70;background:linear-gradient(#fff,#f9fbfe);font-weight:650}.soft-btn:hover:not(:disabled){border-color:#8cb7ee;background:#f0f7ff;color:#1268d4;transform:translateY(-1px)}
.library-view,.simple-view{padding:28px 34px 80px;max-width:1540px}.library-head{position:relative;overflow:hidden;padding:24px 26px;margin-bottom:22px;border:1px solid rgba(199,217,238,.82);border-radius:20px;background:linear-gradient(110deg,rgba(255,255,255,.98),rgba(241,249,255,.96) 58%,rgba(240,237,255,.9));box-shadow:var(--shadow)}.library-head::after{content:"";position:absolute;width:240px;height:240px;right:25%;top:-170px;border-radius:50%;background:linear-gradient(145deg,rgba(49,213,218,.18),rgba(120,104,255,.14));pointer-events:none}.library-head h1,.section-head h2,.page-title h1{font-size:26px;letter-spacing:-.5px;color:#102847}.library-head p,.page-title p{color:#71839c}.eyebrow{display:block;margin-bottom:6px;color:#1477ed;font-size:10px;font-weight:900;letter-spacing:1.8px}.library-tools{position:relative;z-index:1}.library-head input,.section-head input,.server-row input{height:42px;border:1px solid #d5e1ef;border-radius:11px;background:#fff;box-shadow:inset 0 1px 2px #203c5a0a}.library-head input,.section-head input{padding-left:36px;background-image:radial-gradient(circle,#6f819b 0 2px,transparent 2.5px),linear-gradient(45deg,transparent 45%,#6f819b 46% 54%,transparent 55%);background-size:13px 13px,7px 7px;background-position:13px 12px,23px 24px;background-repeat:no-repeat}
.template-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:18px}.template-card{min-height:218px;padding:11px;border:1px solid rgba(207,221,237,.9);border-radius:16px;box-shadow:0 7px 22px rgba(34,71,114,.07);overflow:hidden;background:rgba(255,255,255,.96)}.template-card:hover{transform:translateY(-3px);border-color:#75aff7;box-shadow:0 14px 30px rgba(26,100,186,.15)}.template-card.selected{outline:0;border-color:#1682ff;box-shadow:0 0 0 3px rgba(22,130,255,.15),0 14px 30px rgba(26,100,186,.14)}.template-thumb{height:145px;border:1px solid #e6eef7;border-radius:12px;background:linear-gradient(145deg,#f8fbff,#eef5fc);overflow:hidden}.template-thumb::before{content:"";position:absolute;inset:0;background-image:radial-gradient(#a8bdd6 1px,transparent 1px);background-size:12px 12px;opacity:.22}.template-thumb .mini-paper{z-index:1;border:1px solid #91a1b4;box-shadow:0 8px 16px rgba(40,63,88,.14)}.mini-vector{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#182536;stroke-width:.85;vector-effect:non-scaling-stroke}.mini-vector *{vector-effect:non-scaling-stroke}.mini-el{z-index:1;color:#152235!important;font-size:3.3px;line-height:1.05}.template-size-chip{position:absolute;z-index:2;right:8px;top:8px;padding:4px 7px;border-radius:999px;color:#175faf;background:rgba(237,247,255,.95);border:1px solid #d4eaff;font-size:10px;font-weight:800;box-shadow:0 2px 8px rgba(30,91,151,.08)}.template-meta{margin:11px 4px 0}.template-meta strong{font-size:14px;color:#142b49}.template-meta small{display:block;margin-top:5px;color:#8797aa;font-size:11px}.card-menu{right:10px;bottom:10px;width:30px;height:28px;border-radius:9px;background:#edf5ff;font-weight:900}.new-card .template-thumb{border:1.5px dashed #9ebce0;background:linear-gradient(145deg,#f7fbff,#f1f5ff);color:#1678ef}.new-card .template-thumb::after{content:"NEW";position:absolute;bottom:13px;font-size:9px;font-weight:900;letter-spacing:1.6px;color:#77a2d5}.recommended{margin-top:26px;padding:24px;border:1px solid rgba(204,219,237,.88);border-radius:20px;background:rgba(255,255,255,.9);box-shadow:var(--shadow)}.section-head{padding-bottom:15px;border-bottom:1px solid #e8eff7}.section-head h2{display:inline-block;margin-right:8px}.section-head span:not(.eyebrow){display:inline-flex;padding:3px 7px;border-radius:999px;background:#e9f5ff;color:#1971d5;font-size:11px;font-weight:700}
.page-title{margin-bottom:20px}.simple-view>.settings-card{max-width:820px}.settings-card,.panel-card{border:1px solid #dae6f3;border-radius:16px;box-shadow:0 8px 26px rgba(35,73,116,.08);background:rgba(255,255,255,.96)}.settings-card{padding:23px}.settings-card h3,.panel-card h3{color:#16375f}.settings-card code{padding:10px 12px;border-radius:9px;background:#f2f7fd;color:#365a82}
.editor-view{height:calc(100vh - 76px);padding:14px 18px 18px}.editor-head{height:54px;border:1px solid #dbe6f3;border-radius:15px 15px 0 0;box-shadow:0 7px 22px rgba(37,74,117,.07)}.name-input{height:36px;border:1px solid #e0e8f2;background:#f4f7fb;border-radius:9px}.size-badge{color:#1767c6;background:#eaf4ff;border:1px solid #d3e8ff;font-weight:800}.editor-shell{height:calc(100% - 54px);gap:14px}.workspace{overflow:hidden;border:1px solid #d7e4f2;border-radius:0 0 15px 15px;background:#dfeaf7;box-shadow:0 10px 28px rgba(39,74,116,.09)}.toolbar{height:68px;padding:7px 11px;background:rgba(255,255,255,.98);border-bottom-color:#dce7f3}.toolbar button{border:1px solid #e3ebf4;background:#f6f9fc;border-radius:8px;color:#314c6b;font-weight:650}.toolbar button:hover{border-color:#7eb2f0;background:#eaf4ff;color:#1267ce}.property-bar{background:#fbfdff;border-bottom-color:#dce7f3}.stage{background-color:#eaf2fb;background-image:linear-gradient(45deg,#d9e5f2 25%,transparent 25%),linear-gradient(-45deg,#d9e5f2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9e5f2 75%),linear-gradient(-45deg,transparent 75%,#d9e5f2 75%);box-shadow:inset 0 8px 20px rgba(56,83,116,.05)}.paper{box-shadow:0 15px 38px rgba(25,49,77,.22),0 0 0 1px rgba(143,163,184,.5)}.right-panel{padding:0 1px 0 0}.panel-card{padding:16px}.drop-zone{border-color:#a9c4e4;border-radius:12px;background:linear-gradient(145deg,#f9fcff,#f1f7fd)}.drop-zone:hover{border-color:#368df2;background:#edf7ff}.output-card{position:relative;overflow:hidden}.output-card::before{content:"EXPORT";position:absolute;right:-5px;top:-13px;color:#176fe8;font-size:36px;font-weight:900;letter-spacing:2px;opacity:.045;pointer-events:none}.update-pill{right:20px;bottom:16px;border-color:#cbdff5;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 7px 18px rgba(31,74,123,.13);font-weight:700}
.modal-mask{background:rgba(10,27,49,.58);backdrop-filter:blur(5px)}.modal{border:1px solid rgba(213,226,241,.9);border-radius:18px;box-shadow:0 28px 80px rgba(4,25,54,.3)}.modal h2{padding:20px 22px;color:#142e50;background:linear-gradient(120deg,#fff,#f5f9ff);border-radius:18px 18px 0 0}.modal-body{padding:21px 22px}.modal-actions{padding:15px 22px;background:#fbfdff}.form-grid input,.form-grid select,.form-grid textarea{border-radius:9px;padding:10px 11px}.form-tip{margin:15px 0 0;color:#7c8da4;font-size:12px}.login-intro{display:flex;flex-direction:column;margin:-4px 0 18px;padding:15px 16px;border-radius:12px;background:linear-gradient(120deg,#eaf5ff,#f2efff)}.login-intro b{font-size:16px;color:#174f91}.login-intro span{margin-top:4px;color:#71849e;font-size:12px}
.account-modal{position:relative;width:min(440px,90vw);overflow:hidden}.account-modal>h2,.account-modal>.modal-actions{display:none}.modal-close{position:absolute;right:15px;top:13px;z-index:2;width:30px;height:30px;border:0;border-radius:50%;background:#ffffffb8;color:#526b87;font-size:21px;cursor:pointer}.account-hero{display:flex;gap:14px;align-items:center;padding:25px 24px 20px;background:linear-gradient(135deg,#e6f5ff,#eef0ff 58%,#e8fcfa)}.account-avatar{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;color:#fff;font-size:24px;font-weight:900;background:linear-gradient(145deg,#0e69ef,#23b5e9,#42d1c7);box-shadow:0 10px 22px rgba(22,119,255,.25)}.account-hero h2{display:block;padding:0!important;margin:0 0 5px!important;background:none!important;border:0!important;font-size:17px}.account-hero h2 span{display:inline-block;margin-left:6px;padding:3px 7px;border-radius:999px;background:linear-gradient(120deg,#ffb643,#ff8a45);color:#fff;font-size:10px;vertical-align:2px}.account-hero p{margin:0;color:#698099;font-size:12px}.account-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:0 18px;padding:18px 4px;border-bottom:1px solid #e4ebf4}.account-stats>div{text-align:center;border-right:1px solid #e4ebf4}.account-stats>div:last-child{border:0}.account-stats strong{display:block;color:#123b69;font-size:19px}.account-stats span{display:block;margin-top:5px;color:#8493a6;font-size:10px}.account-actions{padding:10px 18px 18px}.account-action{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;padding:12px 10px;border:0;border-bottom:1px solid #e8eef6;background:#fff;cursor:pointer}.account-action::after{content:"›";grid-row:1/3;grid-column:2;align-self:center;color:#8fa0b4;font-size:20px}.account-action b{color:#263f5d}.account-action span{margin-top:3px;color:#8a98aa;font-size:11px}.account-action:hover{padding-left:14px;background:#f7faff}.account-action.danger b{color:#cf4250}
.busy{background:rgba(247,251,255,.94);backdrop-filter:blur(6px)}.spinner{border-color:#d8e8fa;border-top-color:#1677ff;box-shadow:0 0 24px rgba(22,119,255,.18)}.toast{border-radius:11px;background:#142f50;box-shadow:0 10px 28px rgba(9,30,55,.28)}
@media(max-width:1200px){.topbar{padding:0 16px}.brand{width:245px}.brand small{display:none}.license-box{min-width:245px}.library-view,.simple-view{padding-left:22px;padding-right:22px}.template-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}}

/* 账号入口、管理后台与统一应用图标 */
.brand-mark{display:block;object-fit:cover;padding:0;border:1px solid #87bdf5;background:#439af0}
.user-area{position:relative;margin-left:auto;display:flex;align-items:center;justify-content:flex-end;min-width:150px}
.login-register-btn{height:40px;padding:0 18px;border:1px solid #9bc5f7;border-radius:12px;background:linear-gradient(135deg,#eef7ff,#f1f0ff);color:#126bd9;font-weight:800;cursor:pointer;box-shadow:0 5px 14px rgba(22,119,255,.1)}
.login-register-btn:hover{border-color:#3189f0;background:#e7f3ff;transform:translateY(-1px)}
.account-trigger{display:flex;align-items:center;gap:7px;padding:3px 8px 3px 3px;border:1px solid #d7e4f2;border-radius:999px;background:#fff;cursor:pointer;box-shadow:0 5px 15px rgba(35,75,120,.1)}
.account-trigger-avatar{width:38px;height:38px;border-radius:50%;display:block;object-fit:cover;border:1px solid #97c2ef}
.account-trigger-arrow{color:#70829a;font-size:18px;line-height:1;transform:translateY(-2px)}
.account-dropdown{position:absolute;z-index:80;right:0;top:53px;width:340px;overflow:hidden;border:1px solid #d8e4f1;border-radius:15px;background:#fff;box-shadow:0 22px 55px rgba(16,47,83,.24)}
.account-dropdown::before{content:"";position:absolute;right:22px;top:-7px;width:13px;height:13px;background:#eef7ff;border-left:1px solid #d8e4f1;border-top:1px solid #d8e4f1;transform:rotate(45deg)}
.account-dropdown-head{display:flex;align-items:center;gap:12px;padding:18px;background:linear-gradient(135deg,#eaf6ff,#f2f0ff)}
.account-dropdown-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;border:1px solid #8abcf0;box-shadow:0 6px 15px rgba(29,105,190,.18)}
.account-dropdown-head>div{display:flex;min-width:0;flex-direction:column;gap:2px}.account-dropdown-head strong{font-size:15px;color:#153456}.account-dropdown-head small{color:#75879e;font-size:11px}.account-dropdown-head #licenseText{margin-top:2px;color:#216dbd;font-weight:700}
.account-dropdown-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:13px 14px 5px;padding:13px 4px;border-radius:11px;background:linear-gradient(135deg,#dff4ff,#eaf4ff)}
.account-dropdown-stats div{text-align:center;border-right:1px solid #c8e2f3}.account-dropdown-stats div:last-child{border:0}.account-dropdown-stats strong{display:block;color:#123e6c;font-size:17px}.account-dropdown-stats span{display:block;margin-top:4px;color:#75869b;font-size:10px}
.account-dropdown-actions{padding:6px 13px 14px}.account-dropdown-actions button{position:relative;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:10px 30px 10px 10px;border:0;border-bottom:1px solid #e8eef5;background:#fff;cursor:pointer;text-align:left}.account-dropdown-actions button::after{content:"›";position:absolute;right:10px;top:16px;color:#91a0b2;font-size:20px}.account-dropdown-actions button:hover{padding-left:14px;background:#f5f9ff}.account-dropdown-actions span{color:#213d5c;font-weight:700}.account-dropdown-actions small{margin-top:3px;color:#8a98aa}.account-dropdown-actions .danger span{color:#cd3f4e}.account-dropdown-actions button:disabled{opacity:.45;cursor:not-allowed}
.settings-note{display:block;margin-top:9px;color:#7a8ca2}.auth-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin-bottom:16px;padding:4px;border-radius:11px;background:#eef3f8}.auth-tabs button{height:35px;border:0;border-radius:8px;background:transparent;color:#6d7f96;font-weight:700;cursor:pointer}.auth-tabs button.active{background:#fff;color:#166edc;box-shadow:0 3px 10px rgba(29,80,137,.12)}.auth-code-row{display:flex;gap:8px}.auth-code-row input{min-width:0}.auth-code-row button{flex:none;white-space:nowrap}.auth-switch{margin-right:auto;border:0;background:transparent;color:#1672df;font-weight:700;cursor:pointer;padding:9px 4px}.auth-switch:hover{text-decoration:underline}
.mini-text{min-font-size:5.5px;line-height:1.08!important;white-space:pre-wrap;word-break:break-word;color:#0f1d2d!important;text-align:left;font-family:Arial,"Microsoft YaHei",sans-serif}
.admin-dashboard{display:grid;grid-template-columns:minmax(520px,1.35fr) minmax(360px,1fr);gap:16px;align-items:start}.admin-dashboard .settings-card{max-width:none;margin:0}.admin-users-card{grid-row:span 2}.admin-card-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.admin-card-title h3{margin:0 0 3px}.admin-card-title small{color:#8292a6}.admin-card-title input{width:220px;border:1px solid #d4e1ef;border-radius:9px;padding:9px 11px}.admin-card-title.compact{margin:18px 0 8px;padding-top:15px;border-top:1px solid #e4ebf4}.admin-code-create{display:flex;gap:9px}.admin-code-create select{flex:1;border:1px solid #cfdeed;border-radius:9px;padding:9px}.admin-user-list,.admin-list,.code-history{display:flex;flex-direction:column;gap:8px}.admin-user-row{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;padding:11px;border:1px solid #e0e9f3;border-radius:11px;background:#fbfdff}.admin-user-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1a75ef,#30b3ea);color:#fff;font-weight:900}.admin-user-main{min-width:0;display:flex;flex-direction:column;gap:3px}.admin-user-main b{font-size:14px}.admin-user-main span{color:#49627f;font-size:12px}.admin-user-main small{color:#8997a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-empty{padding:20px;text-align:center;color:#8191a5;background:#f7faff;border:1px dashed #cedbea;border-radius:10px}.generated-code{margin-top:12px}.generated-code>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-radius:10px;background:#eaf6ff;color:#0e5dbb;letter-spacing:1px}.generated-code>small{display:block;margin-top:6px;color:#74849a}.code-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 4px;border-bottom:1px solid #e7edf5}.code-history-row>div{display:flex;flex-direction:column;gap:3px}.code-history-row small{color:#8796a8}.code-status{flex:none;padding:4px 8px;border-radius:999px;background:#e9f2ff;color:#236fc7;font-size:11px;font-weight:700}.code-status.redeemed,.code-status.used{background:#e9f8ee;color:#26824a}.code-status.revoked,.code-status.expired{background:#fff0f1;color:#c4434e}
@media(max-width:1200px){.user-area{min-width:110px}.account-dropdown{right:-4px}.admin-dashboard{grid-template-columns:1fr}.admin-users-card{grid-row:auto}}
.share-result-modal{width:min(480px,90vw)}.share-result-modal .modal-body{text-align:center}.share-code-value{display:block;width:100%;padding:18px;border:1px dashed #5b9eea;border-radius:12px;background:#edf7ff;color:#0c65ca;font-size:24px;font-weight:900;letter-spacing:3px;cursor:pointer}.share-code-value:hover{background:#e1f1ff}.share-result-modal p{line-height:1.8;color:#536a84}.share-result-modal small{color:#8494a7}.history-modal{width:min(720px,92vw)}.history-tip{margin:0 0 14px;color:#71839a}.history-list{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow:auto}.history-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 13px;border:1px solid #dfe8f3;border-radius:11px;background:#fbfdff}.history-row>div{min-width:0;display:flex;flex-direction:column;gap:4px}.history-row b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#183754}.history-row small{color:#8493a5}
.admin-user-buttons{display:flex;gap:6px}.admin-user-buttons .soft-btn{padding:7px 9px;white-space:nowrap}.admin-content-modal{width:min(760px,92vw)}.admin-content-modal h3{margin:8px 0 10px;color:#254968}.admin-content-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}.admin-content-list>div{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #dfe8f3;border-radius:9px;background:#f9fcff}.admin-content-list b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-content-list small{color:#8493a5}

/* Cards use the same physical proportions as editor and PDF. */
.template-thumb .lq-preview-stage{min-height:0;max-height:none;padding:0;background:transparent;overflow:hidden;border:0;display:flex;align-items:center;justify-content:center}.template-thumb .lq-preview-paper{box-shadow:none;flex:none}.template-thumb .lq-preview-warning{display:none}
