:root{color:#242924;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--paper:#f7f6f2;--ink:#242924;--muted:#7b7e79;--green:#294e40;--green-hover:#1e4033;--line:#dedfd7;--serif:"Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;background:#f7f6f2;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline-offset:4px;outline:3px solid #6f9d83}svg{flex-shrink:0}h1,h2,h3,p{margin:0}button{border:0}[hidden]{display:none!important}.app-shell{max-width:580px;min-height:100svh;padding:max(30px, env(safe-area-inset-top)) 32px max(24px, env(safe-area-inset-bottom));margin:0 auto}.brand-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;margin-bottom:28px;padding-bottom:21px;display:flex}.brand{text-align:left;background:0 0;align-items:center;gap:11px;padding:0;display:flex}.brand-icon{color:#263d34;transform:rotate(-135deg)}.brand strong{letter-spacing:2px;font-size:25px;font-weight:650;line-height:1.2;display:block}.brand small{letter-spacing:1px;color:var(--muted);margin-top:5px;font-size:11px;line-height:1.5;display:block}.icon-button{background:0 0;border-radius:8px;justify-content:center;align-items:center;width:44px;min-height:44px;padding:8px;display:inline-flex}.icon-button:hover{background:#eaece5}.help-button{margin-right:-9px}.intro{text-align:left;margin-bottom:28px}.intro h1{letter-spacing:-.5px;font-size:30px;font-weight:650;line-height:1.4}.intro p{color:#747c74;margin-top:10px;font-size:15px;line-height:1.8}.mode-switch{border:1px solid var(--line);border-radius:10px;margin-bottom:32px;padding:3px;display:flex}.mode-switch button{background:0 0;border-radius:7px;width:50%;min-height:48px;font-size:16px;font-weight:550}.mode-switch button[aria-selected=true]{background:var(--green);color:#fff;box-shadow:0 1px 2px #203c3020}.section-heading{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.section-heading h2{font-size:17px;font-weight:600;line-height:1.5}.section-heading>span{color:var(--muted);align-items:center;gap:2px;font-size:13px;display:flex}.signature-preview{background:#ffffff72;border:1px dashed #d7d9d0;border-radius:9px;justify-content:center;align-items:center;width:100%;height:36svh;min-height:290px;max-height:380px;padding:32px;display:flex;position:relative}.signature-preview:hover{border-color:#8d9e91}.empty-signature{color:#334b3e;flex-direction:column;align-items:center;gap:15px;display:flex}.empty-signature strong{color:#41463f;font-size:21px;font-weight:450}.empty-signature>span{color:var(--muted);margin-top:-8px;font-size:14px}.corner{border-style:solid;border-color:#a5aaa0;width:13px;height:13px;position:absolute}.top-left{border-width:1px 0 0 1px;top:12px;left:12px}.top-right{border-width:1px 1px 0 0;top:12px;right:12px}.bottom-left{border-width:0 0 1px 1px;bottom:12px;left:12px}.bottom-right{border-width:0 1px 1px 0;bottom:12px;right:12px}.signature-preview img{object-fit:contain;width:100%;max-height:85%}.preview-label{color:var(--muted);align-items:center;gap:3px;font-size:12px;display:flex;position:absolute;bottom:17px}.button{border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:12px 18px;font-size:15px;font-weight:500;line-height:1.5;transition:background-color .15s,transform .15s;display:inline-flex}.button:active:not(:disabled){transform:translateY(1px)}.primary,.button-primary{background:var(--green);color:#fff}.primary:hover:not(:disabled),.button-primary:hover:not(:disabled){background:var(--green-hover)}.secondary,.button-secondary,.button-ghost{border-color:var(--line);background:0 0}.secondary:hover,.button-secondary:hover,.button-ghost:hover{background:#edeee7}.full{width:100%}.start-sign{min-height:52px;margin-top:19px;font-size:17px}.signature-actions{gap:10px;margin-top:19px;display:flex}.signature-actions .primary{flex:1}.trust-row{border-top:1px solid #e4e5dd;justify-content:center;margin-top:27px;padding-top:25px;display:flex}.trust-row>div{justify-content:center;align-items:center;gap:13px;width:50%;display:flex}.trust-row>div+div{border-left:1px solid var(--line)}.trust-row svg{color:#32493d}.trust-row strong{font-size:15px;font-weight:550;display:block}.trust-row small{color:var(--muted);margin-top:4px;font-size:13px;display:block}footer{text-align:center;color:#8b8e86;letter-spacing:.3px;margin-top:32px;font-size:11px;line-height:1.7}.pdf-upload{width:100%;min-height:310px;color:var(--green);background:#ffffff72;border:1px dashed #c7d1c4;border-radius:9px;flex-direction:column;justify-content:center;align-items:center;gap:17px;padding:30px 16px;display:flex}.pdf-upload strong{color:var(--ink);font-size:22px;font-weight:500}.pdf-upload>span{color:var(--muted);font-size:13px;line-height:1.7}.pdf-upload .upload-cta{background:var(--green);color:#fff;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-width:180px;min-height:46px;margin-top:8px;padding:10px 16px;font-size:15px;display:flex}.pdf-steps{justify-content:space-between;gap:6px;margin:22px 0 12px;padding:0;list-style:none;display:flex}.pdf-steps li{color:#686e63;font-size:12px}.pdf-steps span{color:#8c9d8e;margin-right:5px;font-size:10px}.pdf-note{color:var(--muted);text-align:center;font-size:12px;line-height:1.8}.error-notice{color:#83472d;background:#fbede7;border:1px solid #ebd0c0;border-radius:8px;align-items:center;gap:7px;margin-bottom:18px;padding:8px 6px 8px 14px;font-size:14px;line-height:1.7;display:flex}.error-notice>span{flex:1}.inline-error,.form-error{color:#934d32;margin-top:12px;font-size:13px;line-height:1.6}.loading-panel{min-height:180px;color:var(--muted);justify-content:center;align-items:center;gap:10px;font-size:14px;display:flex}.spinner{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.checkerboard{background-color:#fff;background-image:conic-gradient(#eeeee8 25%, transparent 0 50%, #eeeee8 0 75%, transparent 0);background-size:16px 16px}.modal{background:var(--paper);width:calc(100% - 36px);max-width:480px;max-height:calc(100dvh - 40px);color:var(--ink);border:1px solid #e3e4dc;border-radius:16px;margin:auto;padding:23px;overflow-y:auto;box-shadow:0 24px 80px #18322520}.modal::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#192e265f}.signature-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#192e265f}.modal-header{justify-content:space-between;align-items:center;gap:10px;margin:-6px -8px 18px 0;display:flex}.modal-header h2{font-size:19px;font-weight:600;line-height:1.5}.modal-copy{color:var(--muted);text-align:center;overflow-wrap:anywhere;margin:18px 0 22px;font-size:14px;line-height:1.8}.confirm-preview,.export-image{border:1px solid var(--line);border-radius:9px;justify-content:center;align-items:center;height:220px;padding:26px;display:flex}.confirm-preview img,.export-image img{object-fit:contain;max-width:100%;max-height:100%}.confirm-actions{gap:10px;display:flex}.confirm-actions .primary{flex:1}.success-mark{width:45px;height:45px;color:var(--green);background:#e8eee4;border-radius:50%;justify-content:center;align-items:center;margin:0 auto 18px;display:flex}.export-secondary{gap:10px;margin-top:10px;display:flex}.export-secondary .button{flex:1;padding:10px 7px;font-size:13px}.export-file{border:1px solid var(--line);text-align:center;border-radius:9px;flex-direction:column;gap:8px;padding:24px;display:flex}.export-file strong{overflow-wrap:anywhere;font-size:16px}.export-file span{color:var(--muted);font-size:13px}.save-hint{color:var(--muted);margin-top:18px;font-size:12px;line-height:1.8}.help-content h3{margin:20px 0 8px;font-size:15px;font-weight:600}.help-content p{color:#6e746b;margin-bottom:10px;font-size:14px;line-height:1.9}.signature-dialog{background:var(--paper);width:100%;max-width:none;height:100dvh;max-height:none;color:var(--ink);overscroll-behavior:none;border:0;margin:0;padding:0;position:fixed;inset:0}.signature-pad{height:100%;padding:max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));flex-direction:column;display:flex;position:relative}.signature-toolbar{flex-shrink:0;align-items:center;min-height:48px;display:flex}.signature-toolbar h2{font-size:19px;font-weight:600;position:absolute;left:50%;transform:translate(-50%)}.signature-back{border:0;padding:10px 6px;font-size:15px}.signature-pad .signature-actions{bottom:max(34px, calc(env(safe-area-inset-bottom) + 24px));left:max(18px, env(safe-area-inset-left));right:max(18px, env(safe-area-inset-right));gap:10px;margin:0;display:flex;position:absolute}.signature-pad .signature-actions .signature-confirm{margin-left:auto;padding:12px 22px}.signature-hint{color:var(--muted);text-align:center;flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding:7px 0 15px;font-size:12px;line-height:1.6;display:flex}.signature-stage{background:#eeeee7;border:1px solid #e1e3da;border-radius:12px;flex:1;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex;overflow:hidden}.signature-paper{background:#fff;border-radius:9px;max-width:100%;box-shadow:0 0 0 1px #e5e6df}.signature-paper:after{content:"";pointer-events:none;border-bottom:1px solid #d8dbd1;position:absolute;bottom:14%;left:8%;right:8%}.signature-placeholder{font-family:var(--serif);letter-spacing:3px;color:#cbcec5;pointer-events:none;justify-content:center;align-items:center;font-size:clamp(20px,4vw,30px);display:flex;position:absolute;inset:0}.signature-canvas{cursor:crosshair;z-index:1;position:relative}.signature-footer{flex-shrink:0;justify-content:center;align-items:flex-end;height:95px;margin:0;padding-bottom:0;font-size:10px;display:flex}.signature-footer .form-error{background:#fbede7;border-radius:6px;margin:0;padding:6px 14px;position:absolute;top:12px;left:50%;transform:translate(-50%)}.signature-pad .button{min-height:46px}.editor-shell{max-width:780px}.editor-shell .brand-header,.editor-shell .mode-switch{margin-bottom:22px}.editor-privacy{color:var(--muted);justify-content:center;align-items:center;gap:5px;margin-top:22px;font-size:11px;display:flex}.pdf-editor-header{justify-content:space-between;align-items:center;margin:-2px -9px 18px;display:flex}.editor-heading{text-align:center}.editor-heading h1{font-size:19px;font-weight:600;line-height:1.5}.editor-heading p{color:var(--muted);margin-top:2px;font-size:12px}.pdf-file-info{border:1px solid var(--line);color:#345345;border-radius:9px;align-items:center;gap:13px;margin-bottom:14px;padding:14px 16px;display:flex}.pdf-file-info>div{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.pdf-file-info strong{color:var(--ink);white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:550;overflow:hidden}.pdf-file-info span{color:var(--muted);font-size:12px}.pdf-pagination{border:1px solid var(--line);border-radius:8px;justify-content:center;align-items:center;margin-bottom:13px;display:flex}.pdf-pagination>button{border-radius:0;flex:1}.pdf-page-input{border-left:1px solid #e5e6dd;border-right:1px solid #e5e6dd;flex:1;justify-content:center;align-items:center;gap:5px;font-size:14px;display:flex}.pdf-page-input input{width:4ch;max-width:40px;color:var(--ink);text-align:right;background:0 0;border:0;border-radius:4px;padding:4px 0}.pdf-page-input span{white-space:nowrap;color:#6e756c;padding-right:10px}.pdf-workspace{background:#eeeee8;border:1px solid #e5e5dc;border-radius:9px;padding:8px}.pdf-page{box-shadow:0 1px 6px #25362a13}.pdf-canvas-wrap{background:#fff}.pdf-canvas-status{color:var(--muted);background:#fafbf8de;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex;position:absolute;inset:0}.pdf-canvas-error{text-align:center;padding:12px}.pdf-canvas-status .spin,.spin{animation:1s linear infinite spin}.pdf-thumbnails{justify-content:center;align-items:center;gap:16px;min-height:92px;padding:16px 10px 6px;display:flex}.pdf-thumbnail{background:#fff;border:1px solid #0000;border-radius:6px;width:62px;padding:3px;position:relative;overflow:hidden}.pdf-thumbnail.is-current{border-color:var(--green);box-shadow:0 0 0 1px #294e4010}.pdf-thumbnail-number{color:#fff;background:#888d84;border-radius:4px;justify-content:center;align-items:center;min-width:21px;min-height:24px;font-size:12px;display:flex;position:absolute;bottom:3px;right:3px}.is-current .pdf-thumbnail-number{background:var(--green)}.pdf-thumbnail-signed{color:#fff;background:var(--green);border-radius:50%;justify-content:center;align-items:center;width:15px;height:15px;display:flex;position:absolute;top:3px;right:3px}.signature-placement{outline:1px solid #0000}.signature-placement.is-selected{outline-color:var(--green);background:#294e4005}.signature-placement.is-selected:before{content:"";border:1px solid var(--green);background:#fff;border-radius:50%;width:7px;height:7px;position:absolute;top:-4px;left:-4px}.signature-placement.is-selected:after{content:"";border:1px solid var(--green);background:#fff;border-radius:50%;width:7px;height:7px;position:absolute;bottom:-4px;left:-4px}.placement-delete,.placement-resize{color:#fff;z-index:2;background:0 0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:flex}.placement-delete:before,.placement-resize:before{content:"";background:var(--green);z-index:-1;border-radius:50%;width:24px;height:24px;position:absolute;box-shadow:0 0 0 2px #fff}.placement-resize{cursor:nwse-resize}.pdf-editor-status{min-height:44px;color:var(--muted);justify-content:space-between;align-items:center;gap:6px;margin-top:8px;font-size:12px;line-height:1.7;display:flex}.text-button{color:var(--green);white-space:nowrap;background:0 0;justify-content:center;align-items:center;gap:4px;padding:5px 0 5px 8px;font-size:12px;display:inline-flex}.pdf-size-control{color:#747d70;align-items:center;gap:12px;margin-top:1px;font-size:12px;display:flex}.pdf-size-control label{white-space:nowrap}.pdf-size-control input{min-width:0;accent-color:var(--green);cursor:pointer}.pdf-size-control>span{font-variant-numeric:tabular-nums;min-width:30px}.pdf-actions{background:var(--paper);z-index:5;box-shadow:0 -8px 12px var(--paper);padding:10px 0;padding-bottom:max(10px, env(safe-area-inset-bottom));gap:8px;margin-top:9px;display:flex;position:sticky;bottom:0}.pdf-actions .button{min-height:48px;padding:11px 13px;font-size:14px}.pdf-preview-button,.pdf-export-button{flex:1}.pdf-local-note{text-align:center;color:var(--muted);margin-top:15px;font-size:11px}.pdf-local-note+p{margin:0}@media (min-width:900px){.app-shell{background:#ffffff2e;border:1px solid #e9e9e1;border-radius:18px;min-height:auto;margin-top:26px;margin-bottom:26px;padding:32px;box-shadow:0 5px 35px #20332004}.signature-dialog{border-radius:16px;width:calc(100vw - 64px);max-width:1120px;height:calc(100dvh - 64px);max-height:700px;margin:auto;box-shadow:0 24px 80px #18322520}}@media (max-width:480px){.app-shell{padding-left:23px;padding-right:23px;padding-top:max(27px, env(safe-area-inset-top))}.brand-header{margin-bottom:25px;padding-bottom:20px}.brand strong{font-size:24px}.brand small{letter-spacing:1px;font-size:11px}.brand-icon{width:33px}.intro h1{font-size:clamp(24px,6.5vw,28px)}.intro{margin-bottom:25px}.intro p{font-size:14px}.mode-switch{margin-bottom:28px}.signature-preview{height:34svh;min-height:265px}.trust-row{margin-top:25px;padding-top:23px}.trust-row>div{gap:9px}footer{margin-top:28px}.button{padding:11px 13px;font-size:14px}.start-sign{font-size:16px}.signature-pad .signature-actions{gap:7px}.signature-pad .signature-actions .button{padding:11px}.signature-pad .signature-actions .signature-confirm{padding:11px 15px}.modal{padding:20px}.pdf-actions{gap:6px}.pdf-actions .button{gap:4px;padding:10px 9px;font-size:13px}.pdf-remove-button{width:44px;min-width:44px;font-size:0!important}.confirm-actions{gap:7px}.confirm-actions .button{padding:11px 10px}}@media (orientation:landscape) and (max-height:550px){.signature-pad{padding-top:max(6px, env(safe-area-inset-top))}.signature-toolbar{min-height:40px}.signature-toolbar h2{font-size:17px}.signature-hint{padding:0 0 7px;font-size:11px}.signature-footer{height:76px}.signature-pad .signature-actions{bottom:max(25px, calc(env(safe-area-inset-bottom) + 14px))}.signature-pad .button{min-height:43px;padding-top:8px;padding-bottom:8px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation-duration:.01ms!important}}
