:root{--bg:#f4f4f1;--card:#fff;--line:#dfe3dc;--text:#19251f;--muted:#6e7772;--green:#b7f44c;--deep:#123226;--blue:#2879d8;--danger:#d74848}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg)}button,label{font:inherit}.hidden{display:none!important}.pdf-app-header{height:64px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 20px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.back-link{color:var(--deep);text-decoration:none;font-weight:700}.pdf-title{display:flex;align-items:center;gap:10px}.pdf-title small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.pdf-brand{display:grid;place-items:center;width:36px;height:36px;background:var(--deep);color:var(--green);border-radius:10px;font-weight:900}.pdf-header-actions{display:flex;justify-content:flex-end;gap:8px}.header-button,.pdf-header-actions button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 15px;font-weight:700;cursor:pointer}.header-button input,.option-file input,.page-actions input,.pdf-empty-upload input{display:none}.primary{background:var(--deep)!important;color:#fff;border-color:var(--deep)!important}.pdf-main-toolbar{display:flex;overflow-x:auto;gap:2px;padding:7px 14px;background:#fbfcff;border-bottom:1px solid #cfd5df;position:sticky;top:64px;z-index:45}.pdf-main-toolbar button{min-width:74px;border:0;background:transparent;padding:6px 7px;border-radius:8px;display:grid;place-items:center;gap:2px;color:#27313c;font-size:11px;cursor:pointer}.pdf-main-toolbar button span{font-size:22px;line-height:1}.pdf-main-toolbar button.active{background:#e8f5d7;color:#1d623b}.pdf-more-tools{display:flex;gap:8px;padding:8px 18px;background:#fff;border-bottom:1px solid var(--line)}.pdf-more-tools button,.pdf-optionbar button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 11px;cursor:pointer}.pdf-optionbar{display:flex;gap:12px;align-items:center;overflow-x:auto;padding:9px 14px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:124px;z-index:40;min-height:58px}.pdf-optionbar label{display:grid;gap:3px;min-width:70px;color:var(--muted);font-size:10px}.pdf-tool-options[data-options*="text"] label:first-child{min-width:260px}.pdf-optionbar input{height:34px;border:1px solid #cfd6ce;border-radius:8px;padding:5px 8px;background:#fff}.pdf-optionbar input[type=color]{width:46px;padding:3px}.pdf-optionbar input[type=range]{min-width:90px}.option-file{border:1px solid var(--line);border-radius:8px;padding:8px 12px;color:var(--text)!important;cursor:pointer}.pdf-status{padding:8px 16px;background:#fff9e8;border-bottom:1px solid #eadba9;color:#665629;font-size:12px}.pdf-status.error{background:#fff0f0;color:#a72c2c}.pdf-status.success{background:#effbe6;color:#28673b}.pdf-empty{min-height:calc(100vh - 190px);display:grid;place-items:center}.pdf-empty-upload{width:min(620px,90vw);height:280px;border:2px dashed #aeb8ae;border-radius:24px;background:#fff;display:grid;place-items:center;align-content:center;gap:12px;text-align:center;cursor:pointer}.pdf-empty-upload span{display:grid;place-items:center;width:74px;height:74px;border-radius:20px;background:var(--deep);color:var(--green);font-weight:900;font-size:24px}.pdf-empty-upload b{font-size:22px}.pdf-empty-upload small{max-width:460px;color:var(--muted);line-height:1.6}.pdf-workspace{display:grid;grid-template-columns:230px minmax(0,1fr) 250px;height:calc(100vh - 190px);min-height:640px}.pdf-pages-panel,.pdf-properties{background:#fff;overflow:auto}.pdf-pages-panel{border-right:1px solid var(--line);padding:12px}.pdf-properties{border-left:1px solid var(--line);padding:12px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.page-actions,.page-edit-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:10px}.page-actions label,.page-actions button,.page-edit-actions button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 8px;text-align:center;cursor:pointer;font-size:11px}.pdf-page-list{display:grid;gap:10px}.pdf-page-card{border:2px solid transparent;border-radius:10px;background:#f7f8f5;padding:6px;cursor:pointer}.pdf-page-card.active{border-color:var(--green);background:#f3fde8}.pdf-page-card.deleted{opacity:.42}.pdf-page-card.dragging{opacity:.35}.pdf-page-card img{display:block;width:100%;height:auto;background:#fff}.pdf-page-card footer{display:flex;justify-content:space-between;gap:4px;align-items:center;margin-top:5px;font-size:10px}.pdf-page-card footer button{border:0;background:#fff;border-radius:6px;padding:4px 6px}.pdf-view-panel{min-width:0;display:flex;flex-direction:column;background:#34373c;position:relative;overflow:hidden}.pdf-view-head{height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 14px;background:#24272b;color:#fff}.pdf-scroll{position:relative;flex:1;overflow:auto;padding:30px;display:flex;justify-content:center;align-items:flex-start}.pdf-doc-stage{position:relative;width:min(900px,90%);background:#fff;box-shadow:0 14px 46px #0008;transform-origin:top center}.pdf-doc-stage img{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}.pdf-doc-stage canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;z-index:3}.pdf-floating-nav{position:relative;left:auto;bottom:auto;transform:none;display:flex;align-items:center;justify-content:center;align-self:center;gap:6px;background:#29384e;color:#fff;border-radius:28px;padding:7px 10px;margin:10px 12px 14px;box-shadow:0 8px 24px #0005;flex:0 0 auto;z-index:8}.pdf-floating-nav button{border:0;background:#42516a;color:#fff;border-radius:20px;padding:7px 11px;cursor:pointer}.pdf-floating-nav span{padding:0 8px;font-size:12px}.pdf-annotation-list{display:grid;gap:7px}.annotation-item{display:grid;grid-template-columns:1fr auto;gap:5px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fafbf9;font-size:11px}.annotation-item.active{border-color:var(--blue);background:#eef6ff}.annotation-item button{border:0;background:#fee;color:#a33;border-radius:6px}.pdf-info-box{margin-top:16px;padding:11px;border-radius:10px;background:#fff8d9;font-size:11px;line-height:1.55}.signature-modal{position:fixed;inset:0;z-index:100;background:#0009;display:grid;place-items:center}.signature-card{width:min(760px,92vw);padding:18px;background:#fff;border-radius:18px}.signature-card canvas{width:100%;height:260px;border:1px dashed #9ca69f;background:#fff;touch-action:none}.signature-card>div{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.signature-card button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 15px}.resize-handle{fill:#fff;stroke:#2879d8;stroke-width:2}.m-nav-link{display:grid;place-items:center;text-decoration:none;color:inherit}
@media(max-width:980px){.pdf-workspace{grid-template-columns:150px minmax(0,1fr)}.pdf-properties{display:none}.pdf-optionbar{top:120px}.pdf-scroll{padding:16px}}
@media(max-width:680px){.pdf-app-header{grid-template-columns:auto 1fr auto;padding:0 8px}.back-link{font-size:0}.back-link:after{content:'‹';font-size:28px}.pdf-title small{display:none}.pdf-header-actions .header-button{padding:8px}.pdf-main-toolbar{top:64px}.pdf-optionbar{top:118px}.pdf-workspace{display:block;height:calc(100vh - 186px)}.pdf-pages-panel{height:150px;border:0;border-bottom:1px solid var(--line)}.pdf-page-list{display:flex;overflow-x:auto}.pdf-page-card{min-width:100px}.pdf-view-panel{height:calc(100% - 150px)}.pdf-scroll{padding:8px}.pdf-doc-stage{width:96%}.pdf-floating-nav{max-width:95vw;overflow-x:auto;margin:7px auto 9px}.pdf-main-toolbar button{min-width:64px}.pdf-optionbar label:first-child{min-width:160px}}


.pdf-tool-options{display:flex;align-items:center;gap:10px;flex:0 0 auto}.pdf-common-actions{display:flex;gap:7px;margin-left:auto;flex:0 0 auto}.pdf-common-actions button{white-space:nowrap}.inline-check{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important;gap:6px!important;min-width:auto!important;color:var(--text)!important}.inline-check input{width:18px;height:18px}.tool-tip{font-size:11px;color:var(--muted);white-space:nowrap}.option-label{font-size:11px;color:var(--muted)}.pdf-color-palette{display:flex;gap:5px}.pdf-color-palette button{width:26px;height:26px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #b9c0ba;cursor:pointer}.pdf-color-palette button.active{box-shadow:0 0 0 3px #9fdc3b}.image-pick{font-weight:800;background:#f1fde1!important;border-color:#b9dd83!important}.pdf-native-text-layer{position:absolute;inset:0;z-index:5;pointer-events:none;display:none}.pdf-native-text-layer.active{display:block;pointer-events:auto}.native-text-box{position:absolute;border:1px solid rgba(48,101,255,.7);background:rgba(255,255,255,.04);color:transparent;overflow:hidden;line-height:1.05;white-space:pre-wrap;cursor:text;min-width:2px;min-height:2px}.native-text-box:hover{background:rgba(69,123,255,.12);border-color:#1c66ff}.native-text-box.modified{border-color:#29a646;background:rgba(45,181,77,.12)}.native-text-box.editing{color:#111!important;background:#fff;border:2px solid #2879d8;outline:0;padding:1px;overflow:visible;z-index:12;box-shadow:0 3px 12px #0003;font-size:var(--native-font-size);line-height:1.1}.native-text-loading{position:absolute;left:50%;top:20px;transform:translateX(-50%);background:#1e2d44;color:#fff;padding:8px 12px;border-radius:10px;font-size:12px}.pdf-eraser-cursor{position:absolute;z-index:9;border:2px solid #202020;background:rgba(255,255,255,.72);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 0 1px #fff}.pdf-eraser-cursor.outside{opacity:0}.pdf-doc-stage img{position:relative;z-index:1}.pdf-scroll{padding-bottom:24px}.pdf-floating-nav+*{margin-top:0}

@media(max-width:680px){.pdf-tool-options{min-width:max-content}.pdf-common-actions{margin-left:0}.tool-tip{display:none}.pdf-tool-options[data-options*="text"] label:first-child{min-width:190px}.pdf-color-palette button{width:23px;height:23px}}

/* TD AI Customer Service v2.6.2.4 — embed the proven canvas editor in the chat PDF overlay. */
#td-pdf-pro-editor.hidden{display:none!important}
#file-preview-dialog.td-pdf-pro-open{background:#f4f4f1!important;overflow:hidden!important}
#file-preview-dialog.td-pdf-pro-open>.file-preview-toolbar,
#file-preview-dialog.td-pdf-pro-open>#file-preview-stage,
#file-preview-dialog.td-pdf-pro-open>#pdf-editor-toolbar,
#file-preview-dialog.td-pdf-pro-open>#pdf-editor-hint{display:none!important}
#td-pdf-pro-editor{position:absolute;inset:0;z-index:120;background:#f4f4f1;color:#19251f;display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr);min-width:0;min-height:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
#td-pdf-pro-editor .pdf-app-header{position:static;height:58px;min-height:58px;grid-template-columns:1fr auto;padding:0 14px;z-index:auto}
#td-pdf-pro-editor .pdf-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}
#td-pdf-pro-editor .pdf-main-toolbar{position:static;top:auto;z-index:auto;min-height:54px;flex:0 0 auto}
#td-pdf-pro-editor .pdf-optionbar{position:static;top:auto;z-index:auto;min-height:60px;flex:0 0 auto}
#td-pdf-pro-editor .pdf-status{min-height:32px;display:flex;align-items:center}
#td-pdf-pro-editor .pdf-workspace{height:auto;min-height:0;overflow:hidden}
#td-pdf-pro-editor .pdf-pages-panel,#td-pdf-pro-editor .pdf-properties{min-height:0;overflow:auto}
#td-pdf-pro-editor .pdf-view-panel{min-height:0}
#td-pdf-pro-editor .pdf-scroll{min-height:0}
#td-pdf-pro-editor .pdf-doc-stage{width:min(900px,92%)}
#td-pdf-pro-editor .pdf-tool-options.hidden,#td-pdf-pro-editor .pdf-more-tools.hidden,#td-pdf-pro-editor .signature-modal.hidden{display:none!important}
#td-pdf-pro-editor .asset-status{font-size:11px;color:#66746d;white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis}
#td-pdf-pro-editor .pdf-color-palette button{transition:transform .12s ease,box-shadow .12s ease}
#td-pdf-pro-editor .pdf-color-palette button:hover{transform:scale(1.12)}
#td-pdf-pro-editor .pdf-color-palette button.active{box-shadow:0 0 0 3px #9fdc3b}
#td-pdf-pro-editor .pdf-page-card footer span{display:flex;gap:4px}
#td-pdf-pro-editor .pdf-page-card footer button{cursor:pointer}
#td-pdf-pro-editor .signature-card p{margin:0 0 10px;color:#6e7772;font-size:12px}
#td-pdf-pro-editor #pdf-canvas{cursor:crosshair}
#td-pdf-pro-editor .pdf-native-text-layer{transform-origin:top left}

@media(max-width:1100px){
 #td-pdf-pro-editor .pdf-workspace{grid-template-columns:160px minmax(0,1fr) 220px}
 #td-pdf-pro-editor .pdf-tool-options[data-options*="text"] label:first-child{min-width:200px}
}
@media(max-width:760px){
 #td-pdf-pro-editor .pdf-app-header{grid-template-columns:1fr auto;height:54px;min-height:54px}
 #td-pdf-pro-editor .pdf-title small{display:none}
 #td-pdf-pro-editor .pdf-header-actions button{padding:7px 9px;font-size:11px}
 #td-pdf-pro-editor .pdf-workspace{display:block;height:auto;min-height:0}
 #td-pdf-pro-editor .pdf-pages-panel{height:145px;border-right:0;border-bottom:1px solid #dfe3dc}
 #td-pdf-pro-editor .pdf-page-list{display:flex;overflow-x:auto}
 #td-pdf-pro-editor .pdf-page-card{min-width:105px}
 #td-pdf-pro-editor .pdf-properties{display:none}
 #td-pdf-pro-editor .pdf-view-panel{height:calc(100% - 145px)}
 #td-pdf-pro-editor .pdf-optionbar{min-height:54px;padding:6px 8px}
 #td-pdf-pro-editor .pdf-main-toolbar{padding:5px 8px}
 #td-pdf-pro-editor .pdf-main-toolbar button{min-width:62px}
}
#td-pdf-pro-editor .signature-source-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 12px;padding:10px 12px;border:1px solid #e1e5df;border-radius:10px;background:#f8faf7;font-size:12px}
#td-pdf-pro-editor .signature-source-row .image-pick{margin-left:auto;background:#f1fde1!important}

/* v2.6.2.5 usability hardfix */
#td-pdf-pro-editor .pdf-color-palette button{
  -webkit-appearance:none!important;
  appearance:none!important;
  background:var(--swatch)!important;
  background-color:var(--swatch)!important;
  background-image:linear-gradient(var(--swatch),var(--swatch))!important;
  border:2px solid #fff!important;
  box-shadow:0 0 0 1px #8f9992!important;
  opacity:1!important;
  filter:none!important;
}
#td-pdf-pro-editor .pdf-color-palette button.active{
  box-shadow:0 0 0 3px #77be24,0 0 0 5px #fff!important;
}
#td-pdf-pro-editor .pdf-inline-text-editor{
  position:absolute;
  z-index:25;
  min-width:150px;
  max-width:70%;
  border:2px solid #2879d8;
  border-radius:8px;
  background:rgba(255,255,255,.98);
  box-shadow:0 8px 28px rgba(0,0,0,.22);
  transform:translate(0,0);
  overflow:visible;
}
#td-pdf-pro-editor .pdf-inline-text-editor textarea{
  display:block;
  width:100%;
  min-height:54px;
  max-height:260px;
  padding:7px 8px;
  border:0!important;
  outline:0!important;
  resize:both;
  overflow:auto;
  background:#fff!important;
  line-height:1.25;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
#td-pdf-pro-editor .pdf-inline-text-actions{
  display:flex;
  justify-content:flex-end;
  gap:6px;
  padding:5px;
  border-top:1px solid #dfe3dc;
  background:#f7f9fb;
}
#td-pdf-pro-editor .pdf-inline-text-actions button{
  border:1px solid #d7ddd8;
  border-radius:6px;
  background:#fff;
  padding:5px 9px;
  cursor:pointer;
  font-size:11px;
}
#td-pdf-pro-editor .signature-card{
  width:min(860px,94vw);
  max-height:92vh;
  overflow:auto;
}
#td-pdf-pro-editor .signature-library-head{
  display:flex!important;
  align-items:center;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:6px!important;
  color:#19251f;
}
#td-pdf-pro-editor .signature-library-head span{font-size:11px;color:#6e7772}
#td-pdf-pro-editor .signature-library{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:10px!important;
  margin:8px 0 12px!important;
  max-height:220px;
  overflow:auto;
  padding:2px;
}
#td-pdf-pro-editor .signature-library-card{
  display:grid;
  grid-template-rows:86px auto auto;
  gap:6px;
  min-width:0;
  padding:8px;
  border:1px solid #dde3de;
  border-radius:10px;
  background:#fbfcfa;
}
#td-pdf-pro-editor .signature-library-card img{
  width:100%;
  height:86px;
  object-fit:contain;
  background:#fff;
  border:1px solid #edf0ec;
  border-radius:7px;
}
#td-pdf-pro-editor .signature-library-meta{
  display:grid;
  gap:2px;
  min-width:0;
}
#td-pdf-pro-editor .signature-library-meta b,
#td-pdf-pro-editor .signature-library-meta small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#td-pdf-pro-editor .signature-library-meta b{font-size:11px;color:#19251f}
#td-pdf-pro-editor .signature-library-meta small{font-size:9px;color:#78847d}
#td-pdf-pro-editor .signature-library-actions{
  display:flex!important;
  gap:6px!important;
  justify-content:flex-end!important;
  margin:0!important;
}
#td-pdf-pro-editor .signature-library-actions button{
  padding:5px 8px!important;
  font-size:10px!important;
}
#td-pdf-pro-editor .signature-library-actions .danger-lite{
  color:#a72c2c!important;
  border-color:#efc7c7!important;
  background:#fff5f5!important;
}
#td-pdf-pro-editor .signature-library-empty{
  grid-column:1/-1;
  padding:14px;
  border:1px dashed #cfd6cf;
  border-radius:9px;
  background:#fafbfa;
  color:#6e7772;
  font-size:11px;
  text-align:center;
}
#td-pdf-pro-editor .signature-library-empty.error{color:#a72c2c;background:#fff5f5}
#td-pdf-pro-editor .signature-source-row{justify-content:flex-start!important}
#td-pdf-pro-editor .signature-source-row .image-pick{margin-left:0!important}
@media(max-width:760px){
  #td-pdf-pro-editor .pdf-inline-text-editor{min-width:120px;max-width:78%}
  #td-pdf-pro-editor .signature-library{grid-template-columns:1fr 1fr;max-height:180px}
}

/* v2.6.2.6 — signature library, text scaling, direct send */
#td-pdf-pro-editor #pdf-save-send{
  min-width:104px;
  background:#123226!important;
  color:#fff!important;
  border-color:#123226!important;
  box-shadow:0 2px 8px rgba(18,50,38,.14);
}
#td-pdf-pro-editor #pdf-save-send:disabled{opacity:.46;cursor:not-allowed;box-shadow:none}
#td-pdf-pro-editor .signature-source-row{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) auto auto auto;
  align-items:end!important;
  gap:10px!important;
}
#td-pdf-pro-editor .signature-name-field{
  display:grid;
  gap:4px;
  color:#5f6a64;
  font-size:11px;
  min-width:190px;
}
#td-pdf-pro-editor .signature-name-field input{
  height:36px;
  min-width:180px;
  border:1px solid #cfd6ce;
  border-radius:8px;
  padding:6px 9px;
  background:#fff;
  color:#19251f;
  outline:none;
}
#td-pdf-pro-editor .signature-name-field input:focus{
  border-color:#77be24;
  box-shadow:0 0 0 3px rgba(119,190,36,.14);
}
#td-pdf-pro-editor .signature-library{
  grid-template-columns:repeat(auto-fill,minmax(165px,1fr));
  max-height:255px;
}
#td-pdf-pro-editor .signature-library-card{
  grid-template-rows:92px auto auto;
}
#td-pdf-pro-editor .signature-library-card img{height:92px}
#td-pdf-pro-editor .signature-library-head b::after{
  content:'（可保存多个）';
  margin-left:5px;
  color:#6e7772;
  font-size:10px;
  font-weight:500;
}
#td-pdf-pro-editor .pdf-tool-options[data-options*="text"] #pdf-font-size{
  width:76px;
  font-weight:700;
}
#td-pdf-pro-editor .pdf-header-actions{flex-wrap:nowrap}
@media(max-width:900px){
  #td-pdf-pro-editor .signature-source-row{grid-template-columns:1fr auto;align-items:center!important}
  #td-pdf-pro-editor .signature-source-row .signature-name-field{grid-column:1/-1}
}
@media(max-width:760px){
  #td-pdf-pro-editor .pdf-header-actions{gap:4px}
  #td-pdf-pro-editor .pdf-header-actions button{padding:7px 7px;font-size:10px}
  #td-pdf-pro-editor #pdf-save-send{min-width:86px}
  #td-pdf-pro-editor .signature-source-row{display:flex!important;align-items:center!important;flex-wrap:wrap!important}
  #td-pdf-pro-editor .signature-name-field{width:100%}
}
